A constraint forces the object, to which it is applied, to have the same transforms as its target.

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.




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.

.isCopyTransformsConstraint : Boolean

Used to check whether this or derived classes are copy transforms constraints. Default is true.

.influence : Float

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

.mixMode : String

Specifies how the new transforms is combined with the existing transforms. Default is "REPLACE".

The new transforms is added after the existing transforms.
The new transforms is added before the existing transforms.
The transform values replace existing values.

.type : String

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


See the base TargetConstraint class for common methods.