API

Interface AxisDragGizmo

A single arrow-shaped gizmo that translates its attached node along one axis.

interface AxisDragGizmo {
    attachedNode: SceneNode | null;
    drag: PointerDrag;
    materials: GizmoMaterialSet;
    onPositionChanged: GizmoObservable<Vec3>;
    root: SceneNode;
    useLocalCoordinates: boolean;
}
Index
attachedNode: SceneNode | null

Currently attached node — set via attachAxisDragGizmoToNode.

Drag behaviour driving the pointer interaction.

materials: GizmoMaterialSet

Material triplet (colored / hover / disabled). Hover state is updated automatically during pointer-down on the collider.

onPositionChanged: GizmoObservable<Vec3>

Fired whenever a drag delta is applied to the attached node.

root: SceneNode

The root node — gizmo follows its attachedNode by copying world translation.

useLocalCoordinates: boolean

When true, the gizmo's drag axis is rotated each frame by the attached node's world rotation (local-coord mode). When false (default), the drag axis stays world-aligned. Mirrors BJS updateGizmoRotationToMatchAttachedMesh.