diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-21 17:04:58 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-21 17:04:58 +0100 |
commit | ea95685b4dd2adf09a9be4e2dd9233d0cf98b1ef (patch) | |
tree | 2877243b80b0c026db7a2a618a15677156f41a56 /src/crepe/system/PhysicsSystem.cpp | |
parent | adbd81d3937a1363af312202c7e4b5ec0bf3458d (diff) |
Minor changes due to templating of Vector2
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 bcde431..e7ecd14 100644 --- a/src/crepe/system/PhysicsSystem.cpp +++ b/src/crepe/system/PhysicsSystem.cpp @@ -34,7 +34,7 @@ void PhysicsSystem::update() { if (rigidbody.data.angular_damping != 0) { rigidbody.data.angular_velocity *= rigidbody.data.angular_damping; } - if (rigidbody.data.linear_damping != Vector2{0, 0}) { + if (rigidbody.data.linear_damping != Vector2<double>{0, 0}) { rigidbody.data.linear_velocity *= rigidbody.data.linear_damping; } |