we should use the m_jointMotorForceMultiDof which is indexed by degree

of freedom.
This commit is contained in:
Steven89Liu
2020-10-01 15:58:45 +08:00
parent b12da620ab
commit 104789ca99

View File

@@ -7626,7 +7626,7 @@ bool PhysicsServerCommandProcessor::processRequestActualStateCommand(const struc
}
for (int d = 0; d < mb->getLink(l).m_dofCount; d++)
{
stateDetails->m_jointMotorForce[totalDegreeOfFreedomU] = 0;
stateDetails->m_jointMotorForceMultiDof[totalDegreeOfFreedomU] = 0;
if (mb->getLink(l).m_jointType == btMultibodyLink::eSpherical)
{