This is a fish and bird flocking simulation, designed in unity. It's inner workings are based on a fairly old artifical life program similarly named boids. https://en.wikipedia.org/wiki/Boids
Its optimizaed to find K nearest neighbours through the use of a K-D tree
If you decide to download and run this project, you can use the wasd, shift, and space keys to move the camera.