Implementations of the flocking algorithm

2D
3D