diff options
author | Erwin Coumans <erwin.coumans@gmail.com> | 2020-12-15 16:24:24 -0800 |
---|---|---|
committer | Erwin Coumans <erwin.coumans@gmail.com> | 2020-12-15 16:24:24 -0800 |
commit | 93575a2e385291f212b97684a9d4fee1f826460a (patch) | |
tree | 6dee359598781d1d33af065c629b405299129229 | |
parent | 0f05edf1ae3d4d7b10b124839f1b488040c479a5 (diff) | |
download | bullet3-93575a2e385291f212b97684a9d4fee1f826460a.tar.gz |
fix changeDynamics for to set lower/upper joint limits and joint limit max force
-rw-r--r-- | examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 5 |
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; } |