p2.js
p2.js copied to clipboard
Fix World.step reverting to fixed time step with 0 timeSinceLastCalled
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.