Closed Utopiah closed 2 months ago
In hit_test.js, after setting the anchorOffset here, before emitting the event that's triggering the above code, the code in the xranchor component's update method needs to be called.
Someone could factor out the code from update that sets the position and orientation of the entity, and add a setter for setting the anchorOffset that runs that method. Then the values would be set immediately.
Otherwise they aren't set till the next update on that component
As briefly discussed with @arturitu , not necessarily a bug but when in https://github.com/mozilla/aframe-xr/blob/master/examples/ar/hit_test/index.html#L35 I try to access the position of the added entity I get
0 0 0
even after a hit.Results of some naive tests:
This wasn't necessarily the expected usage but the behavior might be surprising for some so suggestions welcomed.