Constraint

Abstract base class for constraints.

Constructor

Constraint()

This constructor creates a generic constraint (unusable by its own).

Properties

.isConstraint : Boolean

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

.mute : Boolean

Mutes the constraint so it won't affect the constrained object. Default is false.

.name : String

The constraint's name. Default is an empty string.

.type : String

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

Methods

.clone() → Constraint

Return a new constraint with the same parameters as this constraint.

.copy(source : Constraint) → Constraint

Copy the parameters from the passed source constraint into this constraint.

.update(obj : Object3D)

Updates the passed object's transformations by applying the constraint to it.

Source

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