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

Constraint →

# TargetConstraint

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

## Constructor

### TargetConstraint(target : Object3D)

target — constraint's target object.

This constructor creates a generic constraint (unusable by its own).

## Properties

See the base Constraint class for inherited 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 inherited methods.

## Source

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