ChildOfConstraint - Verge3D User Manual - Soft8Soft
Description: Learn how to use ChildOfConstraint in your interactive 3D apps made with Verge3D

TargetConstraint →

# ChildOfConstraint

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

To influence some object, push a ChildOfConstraint instance into the Object3D.constraints array.

## Constructor

### ChildOfConstraint(target : Object3D)

target — constraint's target object.

## Properties

See the base TargetConstraint class for common properties.

### # .isChildOfConstraint : Boolean

Read-only flag to check if a given object is of type ChildOfConstraint.

### # .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.