From 6564d74550670a578d0bd47eb60f0c4f044f75fd Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Wed, 4 Jun 2025 17:12:29 +0200 Subject: [PATCH] Fix issue with pose interpolation --- openVulkanoCpp/Math/Pose.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openVulkanoCpp/Math/Pose.hpp b/openVulkanoCpp/Math/Pose.hpp index 23e8c13..25c203b 100644 --- a/openVulkanoCpp/Math/Pose.hpp +++ b/openVulkanoCpp/Math/Pose.hpp @@ -68,7 +68,7 @@ namespace OpenVulkano::Math [[nodiscard]] Pose Interpolate(const Pose& otherPose, T mixFactor) const { return Pose( - Utils::mix(m_orientation, otherPose.m_orientation, mixFactor), + Utils::slerp(m_orientation, otherPose.m_orientation, mixFactor), Utils::mix(m_position, otherPose.m_position, mixFactor) ); }