About the Flocking Simulator (Boids)
Craig Reynolds’ “boids” (1986) showed that a flock needs no leader: each bird only keeps a little apart from close neighbours, flies the same way as them, and drifts towards their centre. From those three local rules comes the swirling murmuration of starlings and the shimmering school of fish.
Change the strength of each rule and watch the flock fall apart, freeze into a ball or stream in lanes. Add a predator, scare them with your pointer or attract them, and read the alignment score. A spatial grid keeps it smooth with 1,500 birds.
How to use the Flocking Simulator (Boids)
- Watch the flock form.
- Adjust separation, alignment, cohesion and vision.
- Move the pointer or add a predator.
Features
- Three classic rules
- Up to 1,500 agents
- Predator mode
- Pointer attract / scatter
- Alignment (order) metric
Supported formats
- Interactive
Frequently asked questions
Is this how real birds work?
It is a simplified model, but studies of starlings found they react to about seven nearest neighbours — very similar local rules.
Is my text sent anywhere?
No. Everything runs in your browser, so nothing you paste is uploaded or stored.
Added · Last reviewed · Maintained by Sohail Khax · How we test tools