Boids flocking from three rules

Tap to
Edges

How it works

Three rules, no leader

Nobody leads the flock and no bird knows its shape. Each bird looks only at the few birds near it and follows three simple rules. The flock comes out of that.

Craig Reynolds called these simulated birds “boids” in 1987. Films and games still use his rules for flocks, herds and crowds.

The rules

Birds

Presets

About

Each step, every bird adds up three steering pushes from the birds it can see, turns a little toward the total (it can only turn so fast), and moves on at between half and full speed. Rocks, walls and your taps add more pushes.

To stay fast with many birds, the screen is split into a grid of squares as big as the view distance, so each bird only checks the squares around it instead of every other bird.

Space pauses, → steps. Your settings are saved on this device. Works offline.