easy-three

helper.axes

helper.axes(props : Object) : AxesHelper

props - 設定オブジェクト。
  • size (Number) : 軸ヘルパーのサイズ (デフォルト : 10)。
軸ヘルパーを作成してシーンに追加します。

コードの例

軸ヘルパーの表示

const { camera, create, helper, animate } = init()
create.ambientLight();
create.directionalLight();
camera.position.set(2, 2, 2);

controls.connect()

helper.axes();

create.cube();

animate();