Closed divowu closed 2 years ago
Thank you for sharing this great work!
I tried to get the position of the marker in the targetfound event. But I got a zero value Vector3(0,0,0) Below is my code:
marker.addEventListener('targetFound', (e) => { let pos = marker.object3D.position; // all marker targets position are zero }
Has any way to get the position?
Thank you!
top of my head, I'm not sure. maybe it's not yet updated on targetFound. try get it 0.01 seconds later
Yes, it has delay on targetFound. I had get the position on aframe tick function.
Thanks for your reply.
Thank you for sharing this great work!
I tried to get the position of the marker in the targetfound event. But I got a zero value Vector3(0,0,0) Below is my code:
Has any way to get the position?
Thank you!