bug fix in multibody interpolation world transform: update cached rotation and vector

This commit is contained in:
Xuchen Han
2019-08-24 11:51:33 -07:00
parent f2d8ed71ac
commit bb4a554e68

View File

@@ -197,7 +197,7 @@ struct btMultibodyLink
{ {
btScalar *pJointPos = (pq ? pq : &m_jointPos[0]); btScalar *pJointPos = (pq ? pq : &m_jointPos[0]);
btQuaternion& cachedRot = m_cachedRotParentToThis; btQuaternion& cachedRot = m_cachedRotParentToThis;
btVector3& cachedVector =m_cachedRVector; btVector3& cachedVector = m_cachedRVector;
switch (m_jointType) switch (m_jointType)
{ {
case eRevolute: case eRevolute:
@@ -241,6 +241,8 @@ struct btMultibodyLink
btAssert(0); btAssert(0);
} }
} }
m_cachedRotParentToThis_interpolate = m_cachedRotParentToThis;
m_cachedRVector_interpolate = m_cachedRVector;
} }
void updateInterpolationCacheMultiDof() void updateInterpolationCacheMultiDof()