enableMotor method

void enableMotor(
  1. bool flag
)

Enable/disable the joint motor.

@param flag

Implementation

void enableMotor(bool flag) {
  _bodyA.setAwake(true);
  _bodyB.setAwake(true);
  _enableMotor = flag;
}