Algorithms / Interactive Lab 13

Swarm Intelligence: Flocking Rules

Guide a flock through the three local rules that create collective turning, spacing and coherent motion.

Experiments13 / 20ONLINE-FREE LAB
Your browser needs HTML5 Canvas to run this simulation.
LIVE SIMULATIONMYS / 2D / 13
REAL-TIME MODEL · HTML5 CANVAS
THE SCIENCE BEHIND THE SCENE

What you're observing

Reynolds-style boids align with neighbours, move toward their local centre and separate to avoid collisions. No central leader is needed.

a = wₐ alignment + w꜀ cohesion + wₛ separation
Made with 🤖 ChatGPT