A helper for visualizing a direction. This is useful for debugging.
This arrow is essentially a Voxelize version of the ArrowHelper
from Three.js.
Example
const arrow = new VOXELIZE.Arrow();
arrow.position.set(10, 0, 10);
arrow.setDirection(new THREE.Vector3(1, 0, 0));
world.add(arrow);
Hierarchy
-
ArrowHelper
↳
Arrow
Constructors
constructor
• new Arrow(options?
): Arrow
Create a new arrow.
Parameters
Name | Type | Description |
---|---|---|
options | Partial <ArrowOptions > | Parameters to create the arrow. |
Returns
Overrides
ArrowHelper.constructor
Properties
options
• options: ArrowOptions
Parameters used to create the arrow.