新增box复合体 修复vector2运算问题
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
class Time {
|
||||
public static unscaledDeltaTime;
|
||||
public static deltaTime: number;
|
||||
public static deltaTime: number = 0;
|
||||
public static timeScale = 1;
|
||||
public static frameCount = 0;;
|
||||
|
||||
private static _lastTime = 0;
|
||||
|
||||
@@ -9,6 +10,7 @@ class Time {
|
||||
let dt = (currentTime - this._lastTime) / 1000;
|
||||
this.deltaTime = dt * this.timeScale;
|
||||
this.unscaledDeltaTime = dt;
|
||||
this.frameCount ++;
|
||||
|
||||
this._lastTime = currentTime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user