disableMotor method

void disableMotor(
  1. int wheelIndex
)

Set the target rotational speed of the hinge constraint.

Implementation

void disableMotor(int wheelIndex) {
  final hingeConstraint = constraints[wheelIndex];
  hingeConstraint.disableMotor();
}