Closed ROBYER1 closed 1 year ago
Could be a fluke that pointerdown can fire once in WebXR when it turns out that the touches are not pulling through in WebXR - see related question here https://discord.com/channels/717429793926283276/1044286747577692253
Yes - as said in discord before: touches in AR right now are actually WebXR controllers so you mix some things up in your test because you raycast using a touch event but not give the raycast
method a ray.
Instead you should create a ray from your current touch position and use that for raycasting.
I see, closing as I think this is a non issue and the random pointer down event firing was just catching me off guard when investigating
I'll share back if I figure out how to get touch events actually firing too. Would be useful to have some example of that in the samples if I do!
Windows 11, Unity 2022.1.20f1, Exporter 2.47.2-pre I have found that using physics.raycast in AR seems to only hit objects once then never allows hitting them again. Outside of WebXR AR, the same raycast call always hits targets. I've been scratching my head at this all afternoon as it was reproducible in AR on iOS with Mozilla WebXR viewer and also in Chrome Desktop using XR Simulator Extension with Samsung S8 profile
I have:
In desktop using Pointer events
In AR using touch events (using WebXR simulator for logs on desktop) Screengrab:
Realtime:
Minimal repro project: ARDemo-221121_uw.zip