useHelperAxisfunctionhooknacatamalon
useHelperAxis(options: TUseHelperAxisOptions) => TLinesDraws the three axes as coloured lines from where it is placed: X red, Y green, Z blue, the colours every 3D tool uses.
Made inside something, it shows which way that thing is turned, because the lines are measured from it and turn with it. Made in the scene, it marks the world's origin.
Parameters
optionsTUseHelperAxisOptionsHow long the arms are, their colours, and where the gizmo goes.
Example
const Level = () => {
useCamera3d({ projection: 'perspective', fov: 60, y: 1, z: 4, rotationX: -0.2 });
useHelperAxis({ size: 2, negative: true });
return createScene();
};