A constraint allows to attach panels or texts where you want whem to be, regardless of screen resolution or device. Have to parent the object to the camera.
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.
The horizontal canvas edge to fit to. Default is 'NONE'
.
'LEFT'
— left edge.
'RIGHT'
— right edge.
'STRETCH'
— stretch from left to right edge.
'NONE'
— no horizontal fit.
The horizontal canvas edge to fit to. Default is 'NONE'
.
'TOP'
— top edge.
'BOTTOM'
— bottom edge.
'STRETCH'
— stretch from top to bottom.
'NONE'
— no vertical fit.
Additional fit offset, must be >= 0. Default is 0.0
.
Used to check whether this or derived classes are canvas fit constraints. Default is true
.
The constraint's type. Equals to 'CanvasFitConstraint'
.
Canvas fit shape. Default is 'BOX'
.
'SPHERE'
— bounding sphere.
'BOX'
— bounding box.
'POINT'
— zero-sized fit shape.
See the base TargetConstraint class for common methods.
For more info on how to obtain the source code of this module see this page.