Time.deltaTime更正
ArcadeRigidbody优化
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user