aframe
aframe copied to clipboard
ar-hit-test: uses 1st tracked controller instead of headset orientation
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
Also fixes bug #5315
hit testing now also tested under Android 13 (on a Pixel 5)
I can confirm that this fixes https://github.com/aframevr/aframe/issues/5315 for me on multiple Android phones.