enableLimit method

void enableLimit(
  1. bool flag
)

Enable/disable the joint limit.

@param flag

Implementation

void enableLimit(bool flag) {
  if (flag != _enableLimit) {
    _bodyA.setAwake(true);
    _bodyB.setAwake(true);
    _enableLimit = flag;
    _impulse.z = 0.0;
  }
}