TargetConstraint

LockedTrackConstraint

A constraint which makes the constrained object track the target and also locks on of the object's axes.

Constraints are used to set up various relations between objects by affecting their position, rotation and scale. Can be used with the Object3D.constraints property.

Constructor

LockedTrackConstraint(target)

Properties

See the base TargetConstraint class for common properties.

.isLockedTrackConstraint : Boolean

Used to check whether this or derived classes are locked track constraints. Default is true.

.lockAxis : String

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

.trackAxis : String

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

.type : String

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

Methods

See the base TargetConstraint class for common methods.