AxesHelper - Verge3D User Manual - Soft8Soft
Description: Learn how to use AxesHelper in your interactive 3D apps made with Verge3D

Object3D → Line → LineSegments →

# AxesHelper

An axis object to visualize the 3 axes in a simple way. The X axis is red. The Y axis is green. The Z axis is blue.

## Code Example

`const axesHelper = new v3d.AxesHelper(2); app.scene.add(axesHelper);`

## Constructor

### AxesHelper(size : Float)

size — (optional) size of the lines representing the axes. Default is `1`.

## Properties

See the base LineSegments class for inherited properties.

## Methods

See the base LineSegments class for inherited methods.

### # .setColors(xAxisColor : Color, yAxisColor : Color, zAxisColor : Color) → this

Sets the axes colors to xAxisColor, yAxisColor, zAxisColor.

### # .dispose()

Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.

## Source

For more info on how to obtain the source code of this module see this page.