immersive-web / hit-test

Home Page:https://immersive-web.github.io/hit-test/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hit-test capability detection api ?

sarathsi opened this issue · comments

Is there hit-test capability detection API available/any plans to add? For eg., supportsHittest() before using requestHitTest() on XRSession.

This is part of session creation and is covered by the XRModes discussion here: immersive-web/webxr#394

It is likely that hit-test must be part of basic AR support and thus will be available in any session that is allowed to resolve as an AR-type session.

In demos and codelabs, we've been using XRSession.prototype.requestHitTest's existence as a hint of AR support, although it could exist on platforms that implement WebXR and not have AR capabilities (for example enabling WebXR+hit tests on Chrome on desktop)