diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-11 21:32:05 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-11 21:32:05 +0100 |
commit | a4c65ca6a69987349f703e51beed47a219d3d92d (patch) | |
tree | 9d8ca1e5963f4be21896e8df6218b48117b17cbd /src/crepe/system/PhysicsSystem.cpp | |
parent | 436b0db58c7533b286ecd3ec3d3c71311e71cf9c (diff) |
timing fix
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 77c3be7..78370d1 100644 --- a/src/crepe/system/PhysicsSystem.cpp +++ b/src/crepe/system/PhysicsSystem.cpp @@ -21,7 +21,7 @@ void PhysicsSystem::update() { RefVector<Rigidbody> rigidbodies = mgr.get_components_by_type<Rigidbody>(); duration_t delta_time = loop_timer.get_scaled_fixed_delta_time(); - float dt = duration_cast<seconds>(delta_time).count(); + float dt = duration<float>(delta_time).count(); float gravity = Config::get_instance().physics.gravity; for (Rigidbody & rigidbody : rigidbodies) { |