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

TargetConstraint →

# DampedTrackConstraint

A constraint constrains one local axis of the owner to always point towards target. This constraint uses a pure Swing rotation, i.e. the shortest possible single axis rotation. In other 3D software you can find it with the name "Look At" constraint.

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

## Constructor

### DampedTrackConstraint(target : Object3D)

target — constraint's target object.

## Properties

See the base TargetConstraint class for common properties.

### # .fixCameraLightRotation : Boolean

In Verge3D we use right-handed coordinate system with the Y axis pointing in the up direction, but Blender and 3ds Max uses right-handed coordinate system with Z axis pointing in the up direction (Verge3D Wiki). So, to correct the rotation for cameras and lights, set `fixCameraLightRotation = true`. Default is `false`.

### # .influence : Float

The percentage of influence the constraint has on the object. Default is `1.0` (100%).

### # .isDampedTrackConstraint : Boolean

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

### # .trackAxis : String

The axis to always point towards Target. Can be one of the `"X"`, `"Y"`, `"Z"`, `"-X"`, `"-Y"`, `"-Z"`. Default is `"X"`.

### # .type : String

The constraint's type. Equals to `"DampedTrackConstraint"`.

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