summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven89Liu <shengjun89@163.com>2020-10-01 15:58:45 +0800
committerSteven89Liu <shengjun89@163.com>2020-10-01 15:58:45 +0800
commit104789ca99d87b97b9ba5f8a2eee9860fc6ed877 (patch)
treefd22335dcb0ac0a0c6bea8a81799927d2ec8df52
parentb12da620abdff665d53cd953118a741758f28523 (diff)
downloadbullet3-104789ca99d87b97b9ba5f8a2eee9860fc6ed877.tar.gz
we should use the m_jointMotorForceMultiDof which is indexed by degree
of freedom.
-rw-r--r--examples/SharedMemory/PhysicsServerCommandProcessor.cpp2
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)
{