Skip to main content

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);

Arrow

Hierarchy​

  • ArrowHelper

    ↳ Arrow

Constructors​

constructor​

• new Arrow(options?): Arrow

Create a new arrow.

Parameters​

NameTypeDescription
optionsPartial<ArrowOptions>Parameters to create the arrow.

Returns​

Arrow

Overrides​

ArrowHelper.constructor

Properties​

options​

• options: ArrowOptions

Parameters used to create the arrow.