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)

This creates a generic target constraint.

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.