This is a simple implementation of the Boids algorithm. The Boids algorithm is a simple algorithm that simulates the flocking behavior of birds. The algorithm is based on three simple rules: separation, alignment, and cohesion.

The separation rule ensures that boids do not collide with each other, the alignment rule ensures that boids move in the same direction, and the cohesion rule ensures that boids stay close to each other.

You can use the sliders below to adjust these values as well as the number of boids and how far they can see around them.

Check out the project page for more details.

Sorry, this demo is best viewed on a larger screen.

You might wanna head back now.

Back to homepage