I am writing a game in android using Box2d physics engine in NDK. So physics is entirely in the native world but the drawing is still in Java world.
In my game I have an update thread that steps the physics world and invalidates the canvas for redraw. So far so good. When the user wishes to pause the game I stop all the threads. Then user is given an option to "Resume" the game which would restart the threads and the game would begin from where it stopped.
For some reason, when the game is resumed the bodies in the physics move faster. Why would anything change for a body if its time stepping is stoppped and restarted ?
Is there an issue with calling step() again after making a pause ? does the body's velocity, masss, friction , density change after a brief pause.
Any help is appreciated Thanks