API

Interface PlaneRotationGizmo

A torus-shaped gizmo that rotates its attached node around a plane normal.

interface PlaneRotationGizmo {
    attachedNode: SceneNode | null;
    drag: PointerDrag;
    materials: GizmoMaterialSet;
    onRotationChanged: GizmoObservable<[number, number, number, number]>;
    root: SceneNode;
    rotationDisplayMaterial: ShaderMaterial;
    useLocalCoordinates: boolean;
}
Index
attachedNode: SceneNode | null
materials: GizmoMaterialSet
onRotationChanged: GizmoObservable<[number, number, number, number]>
root: SceneNode
rotationDisplayMaterial: ShaderMaterial

ShaderMaterial driving the rotation-sector camembert visual. Exposed so callers can change the colour at runtime.

useLocalCoordinates: boolean

Local-coord mode: plane normal rotates with the attached node.