class

CP::Constraint::RotaryLimitJoint

Inherits CP::Constraint / Reference / Object

Constrains the relative rotations of two bodies.

Constructors

new(a : Body, b : Body, min : Number, max : Number)

min and max are the angular limits in radians. It is implemented so that it's possible to for the range to be greater than a full revolution.

Source

Instance methods

max

The maximum distance the joint will maintain between the two anchors.

Source
max=(max : Number)
Source
min

The minimum distance the joint will maintain between the two anchors.

Source
min=(min : Number)
Source