Constructor
new ArrowHelper( dir : Vector3, origin : Vector3, length : number, color : number | Color | string, headLength : number, headWidth : number )
Constructs a new arrow helper.
| dir |
The (normalized) direction vector. Default is |
| origin |
Point at which the arrow starts. Default is |
| length |
Length of the arrow in world units. Default is |
| color |
Color of the arrow. Default is |
| headLength |
The length of the head of the arrow. Default is |
| headWidth |
The width of the head of the arrow. Default is |
Properties
Methods
.dispose()
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
.setColor( color : number | Color | string )
Sets the color of the helper.
| color |
The color to set. |
.setDirection( dir : Vector3 )
Sets the direction of the helper.
| dir |
The normalized direction vector. |
.setLength( length : number, headLength : number, headWidth : number )
Sets the length of the helper.
| length |
Length of the arrow in world units. |
| headLength |
The length of the head of the arrow. Default is |
| headWidth |
The width of the head of the arrow. Default is |