Algorithms   /   Emergent Motion

Collective Flocking Algorithm Playground

Experiment with alignment, cohesion and local separation.

◉ Interactive research workspace
Live visualizationLIVE RUNNING
Your browser needs HTML5 Canvas support.

How this phenomenon works

A boids flock forms from simple local steering rules: move with nearby neighbors, drift toward their center and avoid collisions. Each agent responds only to local surroundings. Rich collective motion emerges without a central leader.

velocity = alignment + cohesion + separation

Live measurements

Made with 🤖 ChatGPT