top of page

Fish Tank

What I have done?

  • Created the indivudual fish behaviour

  • Cretead the group behaviour, where they avoid colliding with eachother

  • Created school behaviour

  • Added a simple look-ahead collision detection so fishes avoid obstacles

Technologies Used:

  • C#

  • Unity Engine

  • VS Code

GitHub Page:

Details:

This project have been created to learn how to simulate Flock AI( ie: boids) I have done this project in Unity Engine. The reason I have chosen this engine is it is a very bare-bones engine and does not require additional setup, therefore it's really easy to experiment with.
In this project I have simulated a flock behavior by creating two "schools" of fish who have common swim direction. And within these schools, fish form groups where they move together to said direction however they are mindful where the other fishes in their group are and avoid collision with them, which in turn alters the groups direction as well. If a fish gets too far from their group, they will form a new one with ones that are closest to them

bottom of page