Swarm Logic
A "Boids" simulation exploring emergent group behavior through simple local rules.
Parameters
Separation 1.5
Alignment 1.0
Cohesion 1.0
Count 100
"Emergence: Complex global behavior derived from simple local rules. No leader, just logic."
Separation
Boids steer to avoid crowding their neighbors. This keeps the flock from collapsing into a single point.
Alignment
Boids steer towards the average heading of local flockmates. This creates the "flowing" motion of the swarm.
Cohesion
Boids steer to stay near the center of their local group. Without this, the flock would immediately disperse.