Skip to main content

Interface: PointerSample

Defined in: pointer.ts:15

One pointer/ray interaction stream, engine-normalised.

Structurally identical to the PointerSample/PointerInputSource pair in @realitycollective/webxr-uiextensions, so a single object can drive BOTH the UI Extensions windowing and anything else that consumes pointer streams - the coexistence contract between the two families.

Once delivered, a sample and its tuples belong to the listener: the source never writes to them again, so a listener may keep one across frames without copying, exactly as with InputSourceSnapshot.

Properties

PropertyTypeDescriptionDefined in
directionVec3TupleNormalised pointing direction.pointer.ts:19
originVec3TuplePointer world position (ray origin or touch point).pointer.ts:17