This repository was archived by the owner on Nov 12, 2024. It is now read-only.
Question about worldPos() #859
Unanswered
martiansparlor
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Found the issue. For some reason, the position of an object is set at zero when called during add() or onAdd(). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm still learning about the new parent/child system in the v3000, and I don't quite understand how to get an object position in a scene when the said object is created via the addLevel() function.
I tried the worldPos() comp I found in the documentation, but it still returns v2(0,0)
What would be the correct method ?
Beta Was this translation helpful? Give feedback.
All reactions