From f3193e25c4ad935ed6195d80361f0a01728ee4f0 Mon Sep 17 00:00:00 2001 From: Hjalte Dalland Date: Fri, 26 Jan 2024 10:45:11 +0100 Subject: [PATCH] Remember to interpolate angularVelocity --- src/engine/Physics.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/Physics.cpp b/src/engine/Physics.cpp index 11bc65e..641cf05 100644 --- a/src/engine/Physics.cpp +++ b/src/engine/Physics.cpp @@ -801,6 +801,7 @@ void PhysicsWorld::update(float dt, entt::registry ®istry) { body.position = glm::mix(interpolation.current.position, interpolation.next.position, ratio); body.rotation = glm::slerp(interpolation.current.rotation, interpolation.next.rotation, ratio); body.linearVelocity = glm::mix(interpolation.current.linearVelocity, interpolation.next.linearVelocity, ratio); + body.angularVelocity = glm::mix(interpolation.current.angularVelocity, interpolation.next.angularVelocity, ratio); body.scale = glm::mix(interpolation.current.scale, interpolation.next.scale, ratio); }); } \ No newline at end of file