TargetConstraint

ChildOfConstraint

A constraint which makes the constrained object behave like a child of the target object without actual parenting.

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

ChildOfConstraint(target : Object3D)

target — constraint's target object.

Properties

See the base TargetConstraint class for common properties.

.isChildOfConstraint : Boolean

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

.offsetMatrix : Matrix4

The offset matrix for the constrained object. Applied in the parent space. Default is the identity matrix.

.type : String

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

Methods

See the base TargetConstraint class for common methods.

Source

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