A pointer interaction in the 3D scene.

Delivered by the onPointerDown / onPointerUp / onPointerMove / onHover subscriptions in @urth/metatell-sdk/input.

Hierarchy

  • PointerEvent

Properties

button?: number

Mouse/controller button index, when applicable.

kind: "pointerdown" | "pointerup" | "pointermove" | "hover"

Which pointer interaction this event represents.

normal?: Vector3Data

Surface normal at point, if available.

objectId?: string

Id of the object under the pointer, if the pointer hit one.

point?: Vector3Data

World-space point where the pointer ray hit, if any.