mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-18 21:10:05 +00:00
also update m_jointLowerLimit/m_jointUpperLimit in multibody link.
This commit is contained in:
parent
c517c434e6
commit
d88d0e92ef
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user