pymunk icon indicating copy to clipboard operation
pymunk copied to clipboard

Adding Liquids

Open eschan145 opened this issue 2 years ago • 2 comments

It would be pretty cool if we could add liquids that flow around and react to gravity. These could be common in platformer games like lava or just water.

eschan145 avatar Jul 24 '22 20:07 eschan145

Agreed! Tricky part is implementation.. What you can do now is to fake it by using lots of small circles together with some fluid like rendering on top. When I tried something like this a long time ago I wrote a metaballs shader in pyglet with lots of little circles. Worked quite well for what I think you are after, the biggest bottleneck is performance I think.

viblo avatar Jul 26 '22 09:07 viblo

They would take density for parameters so you could know how much they flow around objects.

eschan145 avatar Jul 26 '22 13:07 eschan145