aframe icon indicating copy to clipboard operation
aframe copied to clipboard

ar-hit-test turning enabled = off makes the entity "lose track"

Open Mrbside opened this issue 2 years ago • 0 comments
trafficstars

Description:

A-Frame Version: 1.4.2 Platform / Device: Android Moto g100, Moto Edge 40 Pro Reproducible Code Snippet or URL: https://glitch.com/edit/#!/exciting-thankful-microwave Turning enabled : false in the ar-hit-test component makes the entities lose track

Sorted this out by instead changing the target and src parameter after successfully placing the object on the ar surface.

Should the enabled parameter work?

https://glitch.com/edit/#!/exciting-thankful-microwave

Here you scan the floor, see a red reticle, tap on the screen and my object is spawned on the floor, in the "ar-hit-test-select" event I turn enabled false in the ar-hit-test, If i do it immediately you dont see the object appear, so I added a timeout of 2 seconds to do it, after that you can see the object "disappear" but its far off the camera at your left....}

Mrbside avatar Oct 11 '23 08:10 Mrbside