Skip to content

Interface: GazeCandidateContext ​

Defined in: packages/xr-input/src/pointer/gaze-candidate-provider.ts:16

Per-frame context passed into a GazeCandidateProvider. All fields are owned by the GazePointer and reused across frames; providers MUST NOT retain references to them past update().

Properties ​

candidates ​

candidates: readonly Object3D<Object3DEventMap>[]

Defined in: packages/xr-input/src/pointer/gaze-candidate-provider.ts:22

Candidate Object3D roots to consider.


direction ​

direction: Vector3

Defined in: packages/xr-input/src/pointer/gaze-candidate-provider.ts:20

Smoothed gaze forward direction in world space (unit length).


intersectCandidate() ​

intersectCandidate: (candidate, direction) => Intersection

Defined in: packages/xr-input/src/pointer/gaze-candidate-provider.ts:28

Resolve a pointer-events-compatible ray intersection inside one candidate root. The direction is world-space and unit length. Implementations must treat a null result as an ineligible or non-raycastable surface.

Parameters ​

candidate ​

Object3D

direction ​

Vector3

Returns ​

Intersection


origin ​

origin: Vector3

Defined in: packages/xr-input/src/pointer/gaze-candidate-provider.ts:18

Smoothed gaze origin in world space.

Privacy | Terms