Question

Is there any way to change the animation/physics speed of physicsbody?

I want the update method to be called 60 times a second still, I just want everything on the screen to move slowly, but still have the same property values (ie a velocity (10, 10) would still do the same thing it would just be in slow motion..)

Is there any way to induce this or is there a built in function?

One thing I can think of is dividing every movement property value by two and making gravity half what it is, but I don't think you can set the gravity and I'm not sure that would work anyway physics-wise...

Was it helpful?

Solution

In order to slow down the physics simulation by a factor of two, use:

myScene.physicsWorld.speed = 0.5;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top