mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-08-17 16:49:50 +00:00
fix changeDynamics for to set lower/upper joint limits and joint limit max force
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user