View on GitHub

jmmut

Personal blog

Boids

Don’t you love when simple behaviours using only local information lead to global patterns?

I remembered that boids (or any type of bird flocks, or fish schools) is in my to-do list of simple and cool simulations, so I gave it a try. I loosely followed the rules from the wikipedia page for Boids and this is the result:

The source code is in https://github.com/jmmut/boids, and you can try this in your computer at https://jmmut.itch.io/boids.