An exploration of emergence

Swarm Lab.

Complex behavior.
Three simple rules.

An interactive flocking simulation. Use the sliders and presets to explore the three rules. Use Add obstacle to place obstacles without drawing.
Move your pointer through the field. Watch the flock make room.Edges connect to the opposite side.

Inside the experiment

No leader required

A little awareness.
A lot of possibility.

Each agent only reacts to its neighbors. There is no plan for the whole flock, and no agent in charge. The patterns you see emerge from three small decisions, repeated together.

01 / Separation

Make room.

Steer away from neighbors that get too close. More separation gives each agent a wider berth.

02 / Alignment

Find a rhythm.

Match the direction of nearby agents. More alignment turns scattered movement into a shared flow.

03 / Cohesion

Stay connected.

Move toward the center of the local group. More cohesion draws wandering agents back together.

Follow another thread of curiosity.

Explore more work