p2.js icon indicating copy to clipboard operation
p2.js copied to clipboard

Fix World.step reverting to fixed time step with 0 timeSinceLastCalled

Open Grimeh opened this issue 5 years ago • 0 comments

Calling World.step with a timeSinceLastCalled of 0 would cause it to revert to the fixed time step behaviour. This was due to the default value of timeSinceLastCalled being 0. This change checks for undefined, as opposed to 0.

maxSubSteps still has a default value of 10.

See issue #334 for more details.

Grimeh avatar Oct 17 '18 03:10 Grimeh