Water Simulation on a 2D tile map

Hi fellow BabylonJS devs !

Here’s a small :sweat_droplets: 2D water :sweat_droplets: physic engine demo !

You can find a video of the engine here on my LinkedIn (I don’t think I can embed it here)

Have a nice day !

16 Likes

Very nice!!

1 Like

Love it! Really nice demo! Did you do all the simulation yourself?

1 Like

I did !

It’s a grid based simulation, each cell has a fillLevel, a pressure and a velocity, and it’s rendered with some simple rules to smoothen the cell based on its attributes.

Source code is available here

5 Likes

Lol at the ducky bouncing around :smiley: Thanks for sharing the code!

3 Likes