Starlings A simple implementation of the Boids algorithm for simulating the flocking behaviour of animals. Demo See an example here