diff --git a/leenkx/Sources/leenkx/trait/physics/bullet/DebugDrawHelper.hx b/leenkx/Sources/leenkx/trait/physics/bullet/DebugDrawHelper.hx index 8b067a30..1f7d0bc9 100644 --- a/leenkx/Sources/leenkx/trait/physics/bullet/DebugDrawHelper.hx +++ b/leenkx/Sources/leenkx/trait/physics/bullet/DebugDrawHelper.hx @@ -45,7 +45,7 @@ class DebugDrawHelper { iron.App.notifyOnRender2D(onRender); if (debugDrawMode & DrawRayCast != 0) { - iron.App.notifyOnUpdate(function () { + iron.App.notifyOnFixedUpdate(function () { rayCasts.resize(0); }); }