mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-14 15:52:01 +00:00
fix: quaternion multiplication and division
i hope its correct at least, quaternions are not my strength
This commit is contained in:
2 files changed
+53
-14
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user