A boid simulation using the rules of avoidance, cohesion and alignment
Project "Koi" is a simple boid simulation using the rules of avoidance, cohesion and alignment based on this resource. It simulates a small koi pond, where fishes swim around in a realistic motion and forms schools. There isn't much interactivity, but it is quite a mesmerizing sight to look at. 🤩
Features:
- Animated fishes, swimming in schools
- Fishes avoid obstacles, and swim around them
- Click on a point to create a disturbance, causing the fishes to scatter!
- Unity: Game engine to run the simulation
- C#: Backend logic
Download instructions for users (for Windows only):
- Download Release1.0.0.zip
- Unzip Release1.0.0.zip
- Run 'Project Koi.exe'
- Unity
Installation and setup instructions for developers:
- Install Unity Hub
- Install Unity version 2020.3.30f1 or recommended LTS
- Fork and clone the repository
- Start coding and build something awesome!
This project is no longer under active development. Suggestions, issues and bug reports will not be actively resolved. However, pull requests and forks are always welcome!
Alt + F4 - Quit
D - Toggle decorative objects (Does not affect simulation)
R - Toggle obstacles (rocks)
Left mouse button - Create a disturbance at cursor, causing fish to scatter
Austin Kong @AustinKong
Special thanks to BlackThornProd for technique of animating fish
This project is licensed under MIT license. View license in license.txt
