diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-07 20:42:38 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-07 20:42:38 +0100 |
commit | 9b4f6f24f29e8873a14989ba8c9fccfbc460af7f (patch) | |
tree | 318ad2da9afcf57a246f37d406bea9e782ea988e /src/crepe/system/PhysicsSystem.cpp | |
parent | 529e55a28a7e51bf3dd0f08fa9d6f0192445a7b4 (diff) |
use fixed delta time
Diffstat (limited to 'src/crepe/system/PhysicsSystem.cpp')
-rw-r--r-- | src/crepe/system/PhysicsSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/system/PhysicsSystem.cpp b/src/crepe/system/PhysicsSystem.cpp index 7e66567..be768f9 100644 --- a/src/crepe/system/PhysicsSystem.cpp +++ b/src/crepe/system/PhysicsSystem.cpp @@ -11,7 +11,7 @@ using namespace crepe; void PhysicsSystem::update() { - double dt = LoopTimer::get_instance().get_delta_time(); + double dt = LoopTimer::get_instance().get_fixed_delta_time(); ComponentManager & mgr = this->mediator.component_manager; RefVector<Rigidbody> rigidbodies = mgr.get_components_by_type<Rigidbody>(); |