From 104789ca99d87b97b9ba5f8a2eee9860fc6ed877 Mon Sep 17 00:00:00 2001 From: Steven89Liu Date: Thu, 1 Oct 2020 15:58:45 +0800 Subject: [PATCH] we should use the m_jointMotorForceMultiDof which is indexed by degree of freedom. --- examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {