Translational limits and motor settings of a joint.

Constructor

new()

Default 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.

motorSpeed:Float

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

upperLimit:Float

The upper bound of the limit in usually meters.

The limit is disabled if lowerLimit > upperLimit.

Methods

clone():TranslationalLimitMotor

Returns a clone of the object.

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.