2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:07:43 +00:00

RigInverter translation fix

This commit is contained in:
Jack Andersen
2016-04-08 13:21:41 -10:00
parent 0ff9794f94
commit 5a8b7c599a
2 changed files with 4 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ RigInverter<CINFType>::invertPosition(atUint32 boneId, const zeus::CVector3f& or
zeus::CVector3f localPos = origPos;
if (subDelta)
localPos -= b.m_parentDelta;
return b.m_inverter * localPos;
return b.m_restorer * localPos;
}
return origPos;
}
@@ -146,7 +146,7 @@ RigInverter<CINFType>::restorePosition(atUint32 boneId, const zeus::CVector3f& o
for (const Bone& b : m_bones)
if (b.m_origBone.id == boneId)
{
zeus::CVector3f localPos = b.m_restorer * origPos;
zeus::CVector3f localPos = b.m_inverter * origPos;
if (subDelta)
localPos += b.m_parentDelta;
return localPos;