Rotational limits and motor settings of a joint.

Constructor

new()

Default constructor.

Variables

lowerLimit:Float

The lower bound of the limit in radians.

The limit is disabled if lowerLimit > upperLimit.

motorSpeed:Float

The target speed of the motor in usually radians per second.

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

clone():RotationalLimitMotor

Returns a clone of the object.

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.