enableLimit method
Enable/disable the joint limit.
Implementation
void enableLimit(bool flag) {
if (flag != _enableLimit) {
bodyA.setAwake(true);
bodyB.setAwake(true);
_enableLimit = flag;
_impulse.z = 0.0;
}
}
Enable/disable the joint limit.
void enableLimit(bool flag) {
if (flag != _enableLimit) {
bodyA.setAwake(true);
bodyB.setAwake(true);
_enableLimit = flag;
_impulse.z = 0.0;
}
}