enableMotor method

void enableMotor(
  1. bool flag
)

Enable/disable the joint motor.

Implementation

void enableMotor(bool flag) {
  bodyA.setAwake(true);
  bodyB.setAwake(true);
  _enableMotor = flag;
}