fix: quaternion multiplication and division

i hope its correct at least, quaternions are not my strength
This commit is contained in:
Jan committed 2024-05-11 01:23:51 +02:00
1 parent c74be5e8ae
commit 1c105db5bc
2 files changed
+53 -14

No files matched your search

+1 -1
View File
@@ -204,7 +204,7 @@ namespace
{
const auto& parentBone = xmodel.m_bones[bone.parentIndex];
translation -= Vector3f(parentBone.globalOffset[0], parentBone.globalOffset[2], -parentBone.globalOffset[1]);
rotation -= Quaternion32(
rotation /= Quaternion32(
parentBone.globalRotation.m_x, parentBone.globalRotation.m_z, -parentBone.globalRotation.m_y, parentBone.globalRotation.m_w);
}
rotation.Normalize();