Bitbybit Docs
    Preparing search index...

    Class BabylonGizmoAxisDragGizmo

    One arrow of a position gizmo, dragging along a single axis; reach it through positionGizmo.getXGizmo and its siblings to switch that axis on or off.

    Index

    Constructors

    get

    • Reads whether one axis arrow of a position gizmo is shown.

      Parameters

      Returns boolean

      True when the arrow is shown

    set

    • Shows or hides one axis arrow of a position gizmo, so the mesh can be locked against moving along that axis.

      Parameters

      Returns IAxisDragGizmo

      The same axis drag gizmo

      const yArrow = bitbybit.babylon.gizmo.positionGizmo.getYGizmo({ positionGizmo });
      bitbybit.babylon.gizmo.axisDragGizmo.setIsEnabled({ axisDragGizmo: yArrow, isEnabled: false });