diff --git a/Nuake/src/Scene/Systems/ScriptingSystem.cpp b/Nuake/src/Scene/Systems/ScriptingSystem.cpp index ad9aa71a..f7586ce0 100644 --- a/Nuake/src/Scene/Systems/ScriptingSystem.cpp +++ b/Nuake/src/Scene/Systems/ScriptingSystem.cpp @@ -100,6 +100,8 @@ namespace Nuake auto scriptInstance = scriptingEngineNet.GetEntityScript(entity); scriptInstance.InvokeMethod("OnUpdate", ts.GetSeconds()); } + + DispatchPhysicCallbacks(); } void ScriptingSystem::FixedUpdate(Timestep ts) @@ -129,8 +131,6 @@ namespace Nuake auto scriptInstance = scriptingEngineNet.GetEntityScript(entity); scriptInstance.InvokeMethod("OnFixedUpdate", ts.GetSeconds()); } - - DispatchPhysicCallbacks(); } void ScriptingSystem::Exit()