[page:Constraint] →

[name]

A constraint which limits the constrained object's position 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:Boolean isLimitLocationConstraint]

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

[property:Vector3 max]

A [page:Vector3] holding the maximum values along the corresponding axes to limit the constrained object's position. Default is Vector3(Infinity, Infinity, Infinity).

[property:Vector3 min]

A [page:Vector3] holding the minimum values along the corresponding axes to limit the constrained object's position. Default is Vector3(-Infinity, -Infinity, -Infinity).

[property:String type]

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

Methods

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