Hi, I've run into an issue when trying to pause the game (by setting the global time scale to 0) will not pause the physics simulation as well (as desired) but instead make it revert back to the regular fixed time steps.
This is because World.step uses 0 as the timeSinceLastCalled default value, and therefore the value that indicates that the caller wants fixed time steps:
Hi, I've run into an issue when trying to pause the game (by setting the global time scale to 0) will not pause the physics simulation as well (as desired) but instead make it revert back to the regular fixed time steps.
This is because
World.step
uses 0 as thetimeSinceLastCalled
default value, and therefore the value that indicates that the caller wants fixed time steps:I'm currently working around this by calling
World.step
like:Preferably I would like to be able to call
World.step
withtimeSinceLastCalled === 0
, I think this could be accomplished by replacingwith
Does that seem reasonable?