[page:TargetConstraint] →

[name]

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 [page:Object3D.constraints Object3D.constraints] property.

Constructor

[name]([page:Object3D target])

Properties

See the base [page:TargetConstraint] class for common properties.

[property:Boolean isChildOfConstraint]

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

[property:Matrix4 offsetMatrix]

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

[property:String type]

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

Methods

See the base [page:TargetConstraint] class for common methods.