enableLimit method

void enableLimit(
  1. bool flag
)

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;
  }
}