Hello World, is it possible for me to make a slow motion scene in babylonjs without physics engine and also pause the game too, thanks
1 Like
I am pretty sure @Cedric might have some tricks to fake slow mo in physics.
1 Like
Yes, it’s possible to tweak time.
https://playground.babylonjs.com/#WCRLHB
setTimeStep
will tell the physics engine to use a particular value instead of time reported by the engine.
A value of 0 will stop physics.
Beware! Physics resolution is dependant of time. Collision response for example is highly dependant. So, the simulation will not be the same.
2 Likes
Sorry, Wrong question,I mean WITHOUT physics engine
We do not have a built in way of doing this, the experience itself would have to take it into account
Maybe messing around with the speedRatio property on animations? Scene | Babylon.js Documentation
Setting it to a value lower than 1 will make the animation run slower.
1 Like