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