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

How can I make the simulation more precise in this case where a pool of particles collapses into itself? #953

Closed
jt0dd opened this issue Jan 17, 2021 · 1 comment
Labels

Comments

@jt0dd
Copy link

jt0dd commented Jan 17, 2021

In a simulation where I have a pool of particles freely moving around (with upward and downward forces involved based on a heat gradient), when a certain number of particles get involved, suddenly they all collapse in on eachother, as if the simulation decides "I no longer care whether these particles overlap".

I've tinkered with the broadphase and positionIterations settings and it didnt seem to fix it, any suggestions?

Here's a video of it happening:

https://i.gyazo.com/fa2052ca1c7243b3353d3f37d1e0e28e.mp4

@liabru
Copy link
Owner

liabru commented Jan 18, 2021

Can you check out my response in #951?

It's worth trying each of those but in particular here it looks like you should switch to a fixed timestep, though the simulation may slow down due to the amount of collisions in your example.

@liabru liabru closed this as completed Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants