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
commit 464bbc4ddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{