motorSpeed property
double
motorSpeed
Get the motor speed, usually in meters per second.
Implementation
double get motorSpeed => _motorSpeed;
Set the motor speed, usually in meters per second.
Implementation
set motorSpeed(double speed) {
bodyA.setAwake(true);
bodyB.setAwake(true);
_motorSpeed = speed;
}