From 46bcec62b7cf1cd776ff362854744ed701aa394f Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Mon, 1 Apr 2024 14:58:36 -0400 Subject: [PATCH] Moved callbacks to Update instead of FixedUpdate --- Nuake/src/Scene/Systems/ScriptingSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()