Flocc

Agent-based modeling in JavaScript in the browser or on the server. [v0.5.19]

Flocking

Each agent in this model begins with a random direction, but is constantly shifting its direction to be closer to the average of its closest neighbors. Eventually, all agents will be moving in roughly the same direction.