Algorithms · Interactive science

Flocking Swarm Algorithm

Steer a school of agents with local attraction, alignment and personal-space rules.

EXPERIMENT 07 / 20
Live visualisation
LIVE MODEL
SCIENTIFIC COMPUTATIONCANVAS / 2D
SPACE · PLAY / PAUSE
Metric
—
Metric
—
Metric
—

✧ How the model works

Reynolds-style boids independently combine cohesion, alignment and separation. An agent sees nearby neighbours, then updates its velocity with capped steering before moving.

Made with 🤖 ChatGPT