Moved callbacks to Update instead of FixedUpdate

This commit is contained in:
Antoine Pilote
2024-04-01 14:58:36 -04:00
parent 1bc6bad5be
commit 46bcec62b7

View File

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