Constraint

LimitScaleConstraint

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

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

Constructor

LimitScaleConstraint()

The constructor takes no arguments.

Properties

See the base Constraint class for common properties.

.isLimitScaleConstraint : Boolean

Read-only flag to check if a given object is of type LimitScaleConstraint.

.max : Vector3

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

.min : Vector3

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

.type : String

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

Methods

See the base Constraint class for common methods.

Puzzles

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

Source

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