Skip to content
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

Problem with joints #20

Open
SergioPadilla opened this issue Oct 25, 2016 · 0 comments
Open

Problem with joints #20

SergioPadilla opened this issue Oct 25, 2016 · 0 comments

Comments

@SergioPadilla
Copy link

Hello,
I'm trying to use this physics layout, but I have found a problem when, in the main activity, I create a joint between two bodies. The joint is created correctly, but it's remove again, I think it is because in the 'onLayout' the world is recreated once and once again and only the bodies are safe for the next world. To try fix it, I modify the 'createWorld' method in the Physics class, but when I save the Joints in the array like bodies, I get an error with the memory, concretly this:
java.lang.OutOfMemoryError: Failed to allocate a 154589920 byte allocation with 33554432 free bytes and 125MB until OOM

Can help me? Thanks in advance.
Are the joints really removed? or, maybe, Am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant