Continuing to explore the Cinder port of Memo's wonderful MSAFluid library for 2D fluid simulations. In this video, I am recreating a flocking scenario that was recently mentioned in an episode of AWE-MAGGEDDON hosted by RadioLab.

Check the talk by Ian Couzin.

In it, he discusses how he was able to recreate complex (looking) flocking behaviors with three simple rules.

1) If I am far away from my neighbors, move towards them.
2) If I am too close to my neighbors, move away from them.
3) If I am neither too close or too far from my neighbors, move with them.

Happily, this wasn't too hard to recreate (since I had already been experimenting with rules 1 and 2 for a couple years. It never occurred to me to try rule 3.

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…