also update m_jointLowerLimit/m_jointUpperLimit in multibody link.

This commit is contained in:
Erwin Coumans 2020-07-07 19:49:29 -07:00
parent c517c434e6
commit d88d0e92ef

View File

@ -9355,6 +9355,8 @@ bool PhysicsServerCommandProcessor::processChangeDynamicsInfoCommand(const struc
limC->setLowerBound(lower);
limC->setUpperBound(upper);
}
mb->getLink(linkIndex).m_jointLowerLimit = lower;
mb->getLink(linkIndex).m_jointUpperLimit = upper;
}
else
{
@ -9364,6 +9366,8 @@ bool PhysicsServerCommandProcessor::processChangeDynamicsInfoCommand(const struc
delete limC;
limC = 0;
}
mb->getLink(linkIndex).m_jointLowerLimit = 1;
mb->getLink(linkIndex).m_jointUpperLimit = -1;
}
}