Merge pull request #3089 from Steven89Liu/fixDOF

we should use the m_jointMotorForceMultiDof which is indexed by degree
This commit is contained in:
erwincoumans
2020-11-13 10:06:52 -08:00
committed by GitHub
@@ -7655,7 +7655,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)
{