XRFrame: getHitTestResults() method - Web APIs | MDN

The getHitTestResults() method of the XRFrame interface returns an array of XRHitTestResult objects containing hit test results for a given XRHitTestSource.