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.
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.
target — constraint's target object.
See the base TargetConstraint class for common properties.
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
The percentage of influence the constraint has on the object. Default is
Used to check whether this or derived classes are damped track constraints. Default is
The axis to always point towards Target. Can be one of the
'-Z'. Default is
The constraint's type. Equals to
See the base TargetConstraint class for common methods.
For more info on how to obtain the source code of this module see this page.