New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Body after adding View dynamically #13
Comments
Hey there, you should be able to use |
Unfortunately the Body is null when I try to access it after adding the View with addView(). |
Hey there, this has to do with the fact that the body is not actually created until the view measures itself. This is due to the fact that we need to wait for measure before adding the bodies so that we have the proper size to set the bodies to. A |
Thank You! |
No problem! Let me know if it works out |
Everything worked out well 👍 |
Hi,
I'm adding Views to the PhysicsLayout with addView(). I want to create a Joint between multiple dynamically added Views. How can I access the Body Instance right after adding the View so I can create a Joint?
The text was updated successfully, but these errors were encountered: