Had fun with Boids Algorithms and made the fish simulation.
I have been fascinated with simulations and behavior algorithms, so I decided to built another one besides the Solar System project. This simulation is about swarm behavior like every instance will avoid each other with nearly not losing any speed. It’s name is Boids Algorithm and this behavior is seen in fishes, birds etc.
Here is the source code of this project. Also, you can further read about the algorithm on It’s wiki page.