Flocking Algorithm
My implementation is based on the "Boids" flocking model devised byCraig Reynolds. I've built a simple interactive simulation which allows you to alter certain parameters while it is running, so you can directly see how these affect the way the flock behaves. Flock members will also react to the mouse pointer; steering away from it if it gets too close (hence you can use the mouse to manipulate the flock). You can download my flocking simulation below:

