Interface IWebXRHitTestOptions
interface IWebXRHitTestOptions {
disablePermanentHitTest?: boolean;
enableTransientHitTest?: boolean;
entityTypes?: XRHitTestTrackableType[];
offsetRay?: Vector3;
testOnPointerDownOnly?: boolean;
transientHitTestProfile?: string;
transientOffsetRay?: Vector3;
useReferenceSpace?: boolean;
worldParentNode?: TransformNode;
}
disablePermanentHitTest?: boolean;
enableTransientHitTest?: boolean;
entityTypes?: XRHitTestTrackableType[];
offsetRay?: Vector3;
testOnPointerDownOnly?: boolean;
transientHitTestProfile?: string;
transientOffsetRay?: Vector3;
useReferenceSpace?: boolean;
worldParentNode?: TransformNode;
}
Hierarchy (View Summary)
- IWebXRLegacyHitTestOptions
- IWebXRHitTestOptions
Properties
Optionaldisable Permanent Hit Test
disablePermanentHitTest?: boolean
Do not create a permanent hit test. Will usually be used when only transient inputs are needed.
Optionalenable Transient Hit Test
enableTransientHitTest?: boolean
Enable transient (for example touch-based) hit test inspections
Optionalentity Types
entityTypes?: XRHitTestTrackableType[]
Override the default entity type(s) of the hit-test result
Optionaloffset Ray
Offset ray for the permanent hit test
Optionaltest On Pointer Down Only
testOnPointerDownOnly?: boolean
Only test when user interacted with the scene. Default - hit test every frame
Optionaltransient Hit Test Profile
transientHitTestProfile?: string
Override the default transient hit test profile (generic-touchscreen).
Optionaltransient Offset Ray
Offset ray for the transient hit test
Optionaluse Reference Space
useReferenceSpace?: boolean
Instead of using viewer space for hit tests, use the reference space defined in the session manager
Optionalworld Parent Node
The node to use to transform the local results to world coordinates
Options used for hit testing (version 2)