Fix issue with pose interpolation

This commit is contained in:
Georg Hagen
2025-06-04 17:12:29 +02:00
parent 29ede0499b
commit 6564d74550

View File

@@ -68,7 +68,7 @@ namespace OpenVulkano::Math
[[nodiscard]] Pose<T> Interpolate(const Pose<T>& otherPose, T mixFactor) const [[nodiscard]] Pose<T> Interpolate(const Pose<T>& otherPose, T mixFactor) const
{ {
return Pose<T>( return Pose<T>(
Utils::mix(m_orientation, otherPose.m_orientation, mixFactor), Utils::slerp(m_orientation, otherPose.m_orientation, mixFactor),
Utils::mix(m_position, otherPose.m_position, mixFactor) Utils::mix(m_position, otherPose.m_position, mixFactor)
); );
} }