Fix physics tick

This commit is contained in:
unknown 2018-03-31 00:22:45 +02:00
parent e68add594a
commit 44292413c6

View file

@ -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