Fix physics tick
This commit is contained in:
parent
e68add594a
commit
44292413c6
|
@ -63,7 +63,7 @@ class PhysicsWorld extends Trait {
|
|||
rbMap = new Map();
|
||||
active = this;
|
||||
|
||||
notifyOnUpdate(update);
|
||||
notifyOnLateUpdate(lateUpdate);
|
||||
iron.Scene.active.notifyOnRemove(reset);
|
||||
}
|
||||
|
||||
|
@ -178,7 +178,7 @@ class PhysicsWorld extends Trait {
|
|||
return res;
|
||||
}
|
||||
|
||||
public function update() {
|
||||
public function lateUpdate() {
|
||||
#if arm_debug
|
||||
var startTime = kha.Scheduler.realTime();
|
||||
#end
|
||||
|
|
Loading…
Reference in a new issue