angularVelocity property
double
angularVelocity
Implementation
double get angularVelocity => _angularVelocity;
Set the angular velocity.
w
is the new angular velocity in radians/second.
Implementation
set angularVelocity(double w) {
if (_bodyType == BodyType.static) {
return;
}
if (w * w > 0.0) {
setAwake(true);
}
_angularVelocity = w;
}