mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 19:04:56 +00:00
MP2/3 RigInverter
This commit is contained in:
@@ -56,7 +56,7 @@ RigInverter<CINFType>::Bone::Bone(const CINFType& cinf, const typename CINFType:
|
||||
}
|
||||
}
|
||||
m_tail /= float(actualChildren);
|
||||
if (m_tail.magSquared() < 0.001f)
|
||||
if ((m_tail - boneOrigin).magSquared() < 0.001f)
|
||||
m_tail = naturalTail;
|
||||
|
||||
if (isLCTR)
|
||||
@@ -65,8 +65,8 @@ RigInverter<CINFType>::Bone::Bone(const CINFType& cinf, const typename CINFType:
|
||||
else if (parentIdx != -1)
|
||||
{
|
||||
/* Extrapolate by delta with parent */
|
||||
m_tail = zeus::CVector3f(origBone.origin) + m_parentDelta;
|
||||
if (m_tail.magSquared() < 0.001f)
|
||||
m_tail = boneOrigin + m_parentDelta;
|
||||
if (m_parentDelta.magSquared() < 0.001f)
|
||||
m_tail = naturalTail;
|
||||
|
||||
float deltaMag = m_parentDelta.magnitude();
|
||||
|
||||
Reference in New Issue
Block a user