fix: quaternion multiplication and division

i hope its correct at least, quaternions are not my strength
This commit is contained in:
Jan
2024-05-10 22:55:22 +02:00
parent c74be5e8ae
commit 1c105db5bc
2 changed files with 53 additions and 14 deletions

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();