# Display Axes

> Helpful feature for displaying world axes in Babylon.js.

Source: https://doc.babylonjs.com/toolsAndResources/utilities/World_Axes

## Axes
It is often useful to be able to quickly display world and local axes to see position and rotation, for example. For world axes, use

```javascript
const axes = new BABYLON.Debug.AxesViewer(scene, length_of_axes)
```

To make any of the x, y, and z axes local to a mesh (or other appropriate object), use

```javascript
axes.xAxis.parent = mesh;
axes.yAxis.parent = mesh;
axes.zAxis.parent = mesh;
```

- [Playground: AxesViewer](https://playground.babylonjs.com/#T8UQTA) - Display Axes

You can customise the axes, which do not have to be orthogonal, using 

```javascript
axes.update(position, xAxis, yAxis, zAxis) //all parameters are Vector3s
```

- [Playground: Update AxesViewer](https://playground.babylonjs.com/#T8UQTA#1) - Display Custom Axes

## Further reading

- [AxesViewer API](https://doc.babylonjs.com/typedoc/classes/babylon.debug.axesviewer)
