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

2d physics: Lots of RigidBodies produce many collisions and won't get to "sleep" #515

Closed
marynate opened this issue Jun 15, 2014 · 4 comments

Comments

@marynate
Copy link
Contributor

Testcase project:

https://www.dropbox.com/s/9pijuuoo1zzlqgf/test_physics_2d_sleep.zip

Reproduce:

click "Generate" button several times, observer that when island getting lot's rigibody, it will take forever to turn into sleep state (turn into red color)

@godotengine
Copy link
Collaborator

Finally got to check this.. I'm not sure if it's so much of a sleep issue,
but a problem with the tuning of the physics variables to work in pixels.
Will fix other issues and more serious bugs first then check this one with
more detail.

On Sun, Jun 15, 2014 at 2:21 AM, marynate notifications@github.com wrote:

Testcase project:

https://www.dropbox.com/s/9pijuuoo1zzlqgf/test_physics_2d_sleep.zip

Reproduce:

click "Generate" button several times, observer that when island getting
lot's rigibody, it will take forever to turn into sleep state (turn into
red color)


Reply to this email directly or view it on GitHub
#515.

OkamStudio

@kubecz3k kubecz3k added this to the Later milestone Oct 30, 2015
@kubecz3k
Copy link
Contributor

I'm unsure what is current status of the bug, could you @marynate test it on current nightlies?

@akien-mga akien-mga removed this from the Later milestone Jan 5, 2016
@akien-mga akien-mga changed the title 2d physics: when island getting lots rigibodys, it's almost impossible to transit to "sleep" state 2d physics: Lots of RigidBodies produce many collisions and won't get to "sleep" Apr 18, 2016
@akien-mga
Copy link
Member

I tried the test project and could still reproduce the bug. Here's a version fixed for recent API changes (active --> !sleeping): test_physics_2d_sleep.zip

As @reduz pointed it out, the issue is that all RigidBodies seem to produce an endless stream of mini collisions, so they'll never get to sleep.

To bugsquad: We have several duplicates of this issue I think, don't hesitate to close them as duplicates of this one when stumbling on them.

@akien-mga
Copy link
Member

akien-mga commented Jun 28, 2017

Closing as duplicate of the more recent #2092.

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

No branches or pull requests

3 participants