TargetConstraint

LockedTrackConstraint

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

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

Constructor

LockedTrackConstraint(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.

.isLockedTrackConstraint : Boolean

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

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

Source

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