setMotor method

void setMotor(
  1. double motorSpeed,
  2. double maxMotorForce
)

Set motor data into this constraint.

Implementation

void setMotor(double motorSpeed, double maxMotorForce ) {
  this.motorSpeed = motorSpeed;
  this.maxMotorForce = maxMotorForce;
}