A constraint which limits the constrained object's rotation in its parent's space.
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.
The constructor takes no arguments.
See the base Constraint class for common properties.
The axis to limit the rotation around. Can be one of the 'X'
, 'Y'
, 'Z'
.
Default is 'Y'
.
Used to check whether this or derived classes are limit rotation constraints. Default is true
.
The maximum allowed euler angle around the corresponding axis to
limit the object's rotation. Default is 2π
.
The minimum allowed euler angle around the corresponding axis to
limit the object's rotation. Default is 0
.
The constraint's type. Equals to 'LimitRotationConstraint'
.
See the base Constraint class for common methods.
You can use the limit transform puzzle to apply LimitRotationConstraint in a visual manner.
For more info on how to obtain the source code of this module see this page.