[page:Constraint] →

[name]

A constraint which limits the constrained object's rotation in its parent's space.

Constraints are used to set up various relations between objects by affecting their position, rotation and scale. Can be used with the [page:Object3D.constraints Object3D.constraints] property.

Constructor

[name]()

Properties

See the base [page:Constraint] class for common properties.

[property:String axis]

The axis to limit the rotation around. Can be one of the "X", "Y", "Z". Default is "Y".

[property:Boolean isLimitRotationConstraint]

Used to check whether this or derived classes are limit rotation constraints. Default is *true*.

[property:Number max]

The maximum allowed euler angle around the corresponding axis to limit the object's rotation. Default is 2π.

[property:Number min]

The minimum allowed euler angle around the corresponding axis to limit the object's rotation. Default is 0.

[property:String type]

The constraint's type. Equals to "LimitRotationConstraint".

Methods

See the base [page:Constraint] class for common methods.