setMotorSpeed method

void setMotorSpeed(
  1. double speed
)

Set the motor speed, usually in meters per second.

@param speed

Implementation

void setMotorSpeed(double speed) {
  _bodyA.setAwake(true);
  _bodyB.setAwake(true);
  _motorSpeed = speed;
}