As mentioned in my previous post, I have been working on getting fluids to work with Box2D, and have finally made enough progress to show you guys a working example!
I have attached a testbed with two preliminary tests: a standard dam break, and a buoyancy test that I have been experimenting with.
- You can click a particle to show some debug info.
Check the 'AABBs' checkbox to see the fluids contact groups.
Check the 'Contact Points' to render all the edges connecting the particles. You don't have zoom out very far, before it looks solid
The fluid in its current state is stable-ish. There are situations were the fact that it is 'only' running at 60hz is apparent, like during high-pressure situations. The lack of simulation precision causes it to temporary become unstable, but never so much that it explodes. I will look into this issue in the future, maybe using some kind of adaptive time-stepping.
- Kenneth G.