Time.deltaTime更正

ArcadeRigidbody优化
This commit is contained in:
yhh
2021-04-30 20:35:10 +08:00
parent b3c85e00f9
commit 5277c0de7d
6 changed files with 95 additions and 42 deletions

View File

@@ -23,7 +23,7 @@ module es {
if (this._lastTime == -1)
this._lastTime = currentTime;
let dt = currentTime - this._lastTime;
let dt = (currentTime - this._lastTime) / 1000;
if (dt > this.maxDeltaTime)
dt = this.maxDeltaTime;
this.totalTime += dt;