The collectiveMovement
repository contains a Unity-based simulation framework for modeling the collective behavior of animals, such as fish schools and bird flocks. This project aims to provide a versatile tool for studying and visualizing the complex dynamics of collective behavior in a virtual environment.
- Simulation of collective animal movement through separation, alignment, and cohesion.
- Customizable parameters for different behaviors.
- Real-time visualization of individual and collective movement.
- Unity (Version XYZ or later)
- Basic understanding of Unity's interface and scripting in C#
- Clone the repository to your local machine.
- Open the project in Unity.
- Load the main scene to start experimenting with the simulation.
- Represents an individual fish in the school.
- Handles individual behavior calculations and movement updates.
- Manages the overall simulation environment.
- Initializes and maintains the school of fish.
- Adjust the number of fish and their behavior weights in the
Simulation
script. - Experiment with different parameters to observe varied collective behaviors.
We welcome contributions and suggestions! Please open an issue or submit a pull request to propose changes or additions.
This project is licensed under the MIT License - see the LICENSE file for details.
- [Any third-party libraries or assets used]
- [Inspirational or reference materials]