Rotational limits and motor settings of a joint.
Constructor
Variables
lowerLimit:Float
The lower bound of the limit in radians.
The limit is disabled if lowerLimit > upperLimit.
motorTorque:Float
The maximum torque of the motor in usually newton meters.
The motor is disabled if motorTorque <= 0.
upperLimit:Float
The upper bound of the limit in radians.
The limit is disabled if lowerLimit > upperLimit.
Methods
setLimits(lower:Float, upper:Float):RotationalLimitMotor
Sets limit properties at once and returns this.
this.lowerLimit is set to lower, and this.upperLimit is set to upper.
setMotor(speed:Float, torque:Float):RotationalLimitMotor
Sets motor properties at once and returns this.
this.motorSpeed is set to speed, and this.motorTorque is set to torque.