summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <erwin.coumans@gmail.com>2020-12-15 16:24:24 -0800
committerErwin Coumans <erwin.coumans@gmail.com>2020-12-15 16:24:24 -0800
commit93575a2e385291f212b97684a9d4fee1f826460a (patch)
tree6dee359598781d1d33af065c629b405299129229
parent0f05edf1ae3d4d7b10b124839f1b488040c479a5 (diff)
downloadbullet3-93575a2e385291f212b97684a9d4fee1f826460a.tar.gz
fix changeDynamics for to set lower/upper joint limits and joint limit max force
-rw-r--r--examples/SharedMemory/PhysicsServerCommandProcessor.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp
index 46de664e9..295e202c5 100644
--- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp
+++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp
@@ -9735,10 +9735,7 @@ bool PhysicsServerCommandProcessor::processChangeDynamicsInfoCommand(const struc
btMultiBodyConstraint* mbc = m_data->m_dynamicsWorld->getMultiBodyConstraint(c);
if (mbc->getConstraintType() == MULTIBODY_CONSTRAINT_LIMIT)
{
- if (((mbc->getMultiBodyA() == mb) && (mbc->getLinkA() == linkIndex))
- ||
- ((mbc->getMultiBodyB() == mb) && ((mbc->getLinkB() == linkIndex)))
- )
+ if ((mbc->getMultiBodyA() == mb) && (mbc->getLinkA() == linkIndex))
{
limC = (btMultiBodyJointLimitConstraint*)mbc;
}