aframe icon indicating copy to clipboard operation
aframe copied to clipboard

ar-hit-test: uses 1st tracked controller instead of headset orientation

Open DougReeder opened this issue 2 years ago • 3 comments
trafficstars

Description:

When used with a headset capable of AR, the ar-hit-test component currently projects its ray from the headset, which is suboptimal UX when tracked controllers are available.

Changes proposed:

This change adds a new HitTest component, using the first tracked controller's targetRaySpace.

hit-testing has only been tested with a Quest 1 headset

DougReeder avatar Jun 14 '23 18:06 DougReeder

Also fixes bug #5315

DougReeder avatar Jun 21 '23 03:06 DougReeder

hit testing now also tested under Android 13 (on a Pixel 5)

DougReeder avatar Jul 15 '23 21:07 DougReeder

I can confirm that this fixes https://github.com/aframevr/aframe/issues/5315 for me on multiple Android phones.

gydence avatar Dec 21 '23 22:12 gydence