Replies: 1 comment 4 replies
-
Hello @marcusx2 you can do this with the camera component's
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@nickw1 If I add an entity to the DOM at runtime, I can't get its position without first calling setTimeout to wait 1 frame.
My use case here, as I explained on another github issue, is that I am not actually using the entities themselves on the DOM, but just retrieving their transform information(position) to pass to PlayCanvas for example for positioning. I'm just using ARJS' api to retrieve the information I need to place AR content in another context.
Is there a way that I can do this without waiting a frame, synchronously? I don't mind if I need extra code to calculate the position myself. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions