LitMotion icon indicating copy to clipboard operation
LitMotion copied to clipboard

When the editor replays, Updating Runner may have a negative deltaTime

Open Rotanticu opened this issue 1 year ago • 0 comments

RunnerCache will cache the Updating Runner, so replaying it will not create a new Updating Runner, only Reset() However, the Reset() function of the Updating Runner does not reset the time, which can result in an error in calculating the first frame time The time should be reset in the Reset() function of the Updating Runner Like this public void Reset() { storage.Reset(); prevTime = 0d; prevUnscaledTime = 0d; prevRealtime = 0d; }

Rotanticu avatar Jul 28 '24 11:07 Rotanticu