Metaballs and Marching Squares
Click any of the animations to pause
Something about making visually interesting simulations to play with just gets
me really excited about programming, particularly when there’s some cool
algorithm or bit of math backing it.
Reading a bit about particle simulations on Wikipedia, I stumbled upon
metaballs. In 3D, metaballs looks something like this:
From Metaballs
on Wikipedia
This looked like it had the potential to yield some cool behaviour, so I decided
to dive in. To start, I just wanted some circles bouncing around, like this:
Sweet. The next step is to make these things blobby.