Interface AxisDragGizmo
interface AxisDragGizmo {
attachedNode: SceneNode | null;
drag: PointerDrag;
materials: GizmoMaterialSet;
onPositionChanged: GizmoObservable<Vec3>;
root: SceneNode;
useLocalCoordinates: boolean;
}
attachedNode: SceneNode | null;
drag: PointerDrag;
materials: GizmoMaterialSet;
onPositionChanged: GizmoObservable<Vec3>;
root: SceneNode;
useLocalCoordinates: boolean;
}
Index
Properties
attached Node
Currently attached node — set via attachAxisDragGizmoToNode.
Readonlydrag
Drag behaviour driving the pointer interaction.
Readonlymaterials
materials: GizmoMaterialSet
Material triplet (colored / hover / disabled). Hover state is updated automatically during pointer-down on the collider.
Readonlyon Position Changed
Fired whenever a drag delta is applied to the attached node.
Readonlyroot
The root node — gizmo follows its attachedNode by copying world translation.
use Local Coordinates
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.
A single arrow-shaped gizmo that translates its attached node along one axis.