A constraint which makes the constrained object inherit the target's rotation.
To influence some object, push a CopyRotationConstraint instance into the Object3D.constraints array.
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 false.
The percentage of influence the constraint has on the object. Default is 1.0 (100%).
Read-only flag to check if a given object is of type CopyRotationConstraint.
Specifies how the new rotation is combined with the existing rotation. Default is "REPLACE".
"AFTER""BEFORE""REPLACE"
The constraint's type. Equals to "CopyRotationConstraint".
See the base TargetConstraint class for common methods.
You can use the copy transform puzzle to apply CopyRotationConstraint in a visual manner.
For more info on how to obtain the source code of this module see this page.