Constraint

LimitLocationConstraint

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

To influence some object, push a LimitLocationConstraint instance into the Object3D.constraints array.

Constructor

LimitLocationConstraint()

The constructor takes no arguments.

Properties

See the base Constraint class for common properties.

.isLimitLocationConstraint : Boolean

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

.max : Vector3

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

.min : Vector3

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

.type : String

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

Methods

See the base Constraint class for common methods.

Puzzles

You can use the limit transform puzzle to apply LimitLocationConstraint in a visual manner.

Source

For more info on how to obtain the source code of this module see this page.