Vibe Coding Encyclopedia

Flocking with boids

If one fish is given three rules: "If it is too close, it falls, in the same direction as the neighbor, and in the middle of the neighborhood," no one commands, but there will be a herd.

Category
Physics simulation

Technical terms · Boids (flocking) · Separation · Alignment · Cohesion · Emergent behavior · Toroidal wrap-around

Related techniques

Technique document (Korean)