bindings/webxr_hit_test_1 library
WebXR Hit Test Module
Classes
- XRHitTestOptionsInit
- XRHitTestResult
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebXR Device API contains a single result
of a hit test. You can get an array of objects for a frame by
calling
XRFrame.getHitTestResults()
. - XRHitTestSource
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebXR Device API handles hit test
subscriptions. You can get an object by using the
XRSession.requestHitTestSource()
method. This object doesn't itself contain hit test results, but it is used to compute hit tests for each XRFrame by callingXRFrame.getHitTestResults()
, which returns XRHitTestResult objects. - XRRay
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebXR Device API is a geometric ray
described by an origin point and a direction vector.
objects can be passed to
XRSession.requestHitTestSource()
orXRSession.requestHitTestSourceForTransientInput()
to perform hit testing. - XRRayDirectionInit
- XRTransientInputHitTestOptionsInit
- XRTransientInputHitTestResult
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebXR Device API contains an array of
results of a hit test for transient input, grouped by input
source.
You can get an array of XRHitTestResult objects for a frame by
calling
XRFrame.getHitTestResultsForTransientInput()
. - XRTransientInputHitTestSource
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebXR Device API handles transient input
hit test subscriptions. You can get an object by calling the
XRSession.requestHitTestSourceForTransientInput()
. This object doesn't itself contain transient input hit test results, but it is used to compute hit tests for each XRFrame by callingXRFrame.getHitTestResultsForTransientInput()
, which returns XRTransientInputHitTestResult objects.
Enums
Extensions
- PropsXRHitTestOptionsInit on XRHitTestOptionsInit
- PropsXRHitTestResult on XRHitTestResult
- PropsXRHitTestSource on XRHitTestSource
- PropsXRRay on XRRay
- PropsXRRayDirectionInit on XRRayDirectionInit
- PropsXRTransientInputHitTestOptionsInit on XRTransientInputHitTestOptionsInit
- PropsXRTransientInputHitTestResult on XRTransientInputHitTestResult
- PropsXRTransientInputHitTestSource on XRTransientInputHitTestSource