Documentation
    Preparing search index...

    Interface ScenePointerEventInit

    Construction arguments for a ScenePointerEvent.

    interface ScenePointerEventInit {
        ndcX: number;
        ndcY: number;
        pointerId: number;
        pointerType?: PointerDeviceType;
        target: Node | null;
        type: ScenePointerEventType;
        worldPoint?: Vector3;
    }
    Index
    ndcX: number

    Horizontal normalized device coordinate, [-1, 1], +X right (§7a).

    ndcY: number

    Vertical normalized device coordinate, [-1, 1], +Y up (§7a).

    pointerId: number

    Platform pointer identifier — the mouse, the finger, or the stylus that produced the event. Distinct simultaneous pointers carry distinct ids.

    pointerType?: PointerDeviceType

    Which kind of device this pointer is, when the source knew; see ScenePointerEvent.pointerType.

    target: Node | null

    The node the pointer resolved to, or null when it hit nothing.

    Which event this is.

    worldPoint?: Vector3

    World-space point on target under the pointer, when one is known.