Constraint

TargetConstraint

Abstract base class for constraints that depend on a target object.

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

Constructor

TargetConstraint(target : Object3D)

target — constraint's target object.

This constructor creates a generic constraint (almost unusable).

Properties

See the base Constraint class for common properties.

.isTargetConstraint : Boolean

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

.target : Object3D

The target which this constraint depends on. Should be Object3D.

.type : String

The constraint's type. Equals to 'TargetConstraint'.

Methods

See the base Constraint class for common methods.

Source

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