WebXR Hit-test

The Hit-test API is an extension to the WebXR Device API that provides the capability of raycasting into the real world as understood by the underlying XR system. The goal is to provide a simple API that allows apps to place objects in the real world by casting rays that can be evaluated against the underlying platform's understanding of the real world geometry, regardless of how that is implemented (e.g., hit test against detected planes, point clouds, meshes, etc.).

Comments

This feature requires enabling the following items in chrome://flags. #webxr (enabled by default since M79) #webxr-ar-module #webxr-hit-test

Demo

Documentation

Specification

Working draft or equivalent

Status in Chromium

Blink>WebXR>AR(Android)


Behind a flag (tracking bug) in:

  • Chrome for Android release 80

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owners

Intent to Prototype url

Intent to Prototype thread

Last updated on 2020-01-23