setLimits method

void setLimits(
  1. double lower,
  2. double upper
)

Set the joint limits, usually in meters.

@param lower @param upper

Implementation

void setLimits(double lower, double upper) {
  assert(lower <= upper);
  if (lower != _lowerTranslation || upper != _upperTranslation) {
    _bodyA.setAwake(true);
    _bodyB.setAwake(true);
    _lowerTranslation = lower;
    _upperTranslation = upper;
    _impulse.z = 0.0;
  }
}