angularVelocity property

double angularVelocity

Get the angular velocity.

@return the angular velocity in radians/second.

Implementation

double get angularVelocity {
  return _angularVelocity;
}
void angularVelocity= (double w)

Set the angular velocity.

@param omega the new angular velocity in radians/second.

Implementation

void set angularVelocity(double w) {
  if (_bodyType == BodyType.STATIC) {
    return;
  }

  if (w * w > 0.0) {
    setAwake(true);
  }

  _angularVelocity = w;
}