A simulation of birds flocking behavior based on Craig Reynolds' 1987 paper. The algorithm simulates complex group behavior using three simple steering rules: Separation, Alignment, and Cohesion.
Force to steer away from crowding neighbors.
Force to steer towards the average heading of neighbors.
Force to steer towards the average position of neighbors.