AR.js icon indicating copy to clipboard operation
AR.js copied to clipboard

Multiple entities on Location based don't work

Open antoniskamzel opened this issue 4 years ago • 2 comments

Do you want to request a feature or report a bug?

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce.

Please mention other relevant information such as the browser version, Operating System and Device Name

What is the expected behavior?

If this is a feature request, what is motivation or use case for changing the behavior?

Im trying to load multiple entities at the same time with different long and lat values and it doesnt work as it should. What it does is that it loads all entities at the same place (same direction). My code is an a-scene with two a-entity tags with different latit and long values. (as in the tutorials on the site)

antoniskamzel avatar Oct 25 '21 12:10 antoniskamzel

How are you sure that multiple latlng entities made the locations inaccurate?

I am also seeing that multiple latlng entities seem to behave worse on my device, but I’m not sure if it’s my device’s location that’s inaccurate or something’s wrong with AFrame/AR.js

raywu avatar Oct 26 '21 07:10 raywu

I'm sure cause one entity's latlng is where I need to direct my phone facing North and the other's is facing the phone South but they both appear on North (or South, i havent figured out which works, but i think they both appear on the latlng of the first entity after the a-camera tag). And of course, i know that it must be a bug of Aframe or ARjs cause only one entity in the scene seems to work fine with the latlng given

antoniskamzel avatar Oct 26 '21 08:10 antoniskamzel