[page:TargetConstraint] →

[name]

A constraint which makes the constrained object track the target.

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 isTrackToConstraint]

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

[property:String trackAxis]

The axis of the constrained object that tracks the target. Can be one of the "X", "-X", "Y", "-Y", "Z", "-Z". Default is "X".

[property:String type]

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

[property:String upAxis]

The axis of the constrained object that's always aligned with the world space Y axis as much as possible. Can be one of the "X", "-X", "Y", "-Y", "Z", "-Z". Default is "Y".

Methods

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