diff options
author | Steven89Liu <shengjun89@163.com> | 2020-10-01 15:58:45 +0800 |
---|---|---|
committer | Steven89Liu <shengjun89@163.com> | 2020-10-01 15:58:45 +0800 |
commit | 104789ca99d87b97b9ba5f8a2eee9860fc6ed877 (patch) | |
tree | fd22335dcb0ac0a0c6bea8a81799927d2ec8df52 | |
parent | b12da620abdff665d53cd953118a741758f28523 (diff) | |
download | bullet3-104789ca99d87b97b9ba5f8a2eee9860fc6ed877.tar.gz |
we should use the m_jointMotorForceMultiDof which is indexed by degree
of freedom.
-rw-r--r-- | examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index dbec1dfe6..52589d4a2 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -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) { |