mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-18 21:10:05 +00:00
Merge pull request #3089 from Steven89Liu/fixDOF
we should use the m_jointMotorForceMultiDof which is indexed by degree
This commit is contained in:
commit
464bbc4ddd
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user