IWebXRHitTestOptions

Options used for hit testing (version 2)

Hierarchy

Index

Properties

Optional disablePermanentHitTest

Find examples in Playground
disablePermanentHitTest: boolean

Do not create a permanent hit test. Will usually be used when only transient inputs are needed.

Optional enableTransientHitTest

Find examples in Playground
enableTransientHitTest: boolean

Enable transient (for example touch-based) hit test inspections

Optional entityTypes

Find examples in Playground
entityTypes: XRHitTestTrackableType[]

Override the default entity type(s) of the hit-test result

Optional offsetRay

Find examples in Playground
offsetRay: Vector3

Offset ray for the permanent hit test

Optional testOnPointerDownOnly

Find examples in Playground
testOnPointerDownOnly: boolean

Only test when user interacted with the scene. Default - hit test every frame

Optional transientOffsetRay

Find examples in Playground
transientOffsetRay: Vector3

Offset ray for the transient hit test

Optional useReferenceSpace

Find examples in Playground
useReferenceSpace: boolean

Instead of using viewer space for hit tests, use the reference space defined in the session manager

Optional worldParentNode

Find examples in Playground
worldParentNode: TransformNode

The node to use to transform the local results to world coordinates

Generated using TypeDoc