Hit test
Limited availability
The getHitTestResults()
method of an XRFrame
object helps place objects in an augmented reality session by finding where cast rays intersect with real-world geometry.
To learn more, see
XRFrame: getHitTestResults() method at MDN.
Compatibility
- Chrome 81 Released on 2020-04-07
- Chrome Android 81 Released on 2020-04-07
- Edge 81 Released on 2020-04-13
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari ❌ Search for bugs Search for standards position
- Safari on iOS ❌ Search for bugs Search for standards position
Specifications
- WebXR Hit Test Module, from Immersive Web Working Group (W3C).