Boids
A downloadable project
This project is another part of my portfolio. The project consist in the implementation of the boids algorithm, which simulates the steering behaviours flocks have in nature. There are three simple rules to be implemented:
1 .- Separation: steer to avoid crowding local flockmates (The number of local flockmates is defined by the distance to the individual)
2.- Alignment: steer towards the average heading of local flockmates.
3.- Cohesion: steer to move toward the average position of local flockmates.
4.- Move to a goal: All of the boids will move to a certain point of the map, simulating random direction calculation.
Also, this project implements colission detection, so if the flockmates are heading to an obstacle, they will avoid it.
Everything is possible thanks to a 360 detection system made with raycast. In this way, we can collect our local flockmates and calculate the average position, the average direction, the total number, and steer the physic body according to the algorithm.
With this, We could change the model of the individuals or add a different scenario to fully simulate flock behaviours (as in fishes or birds).
Status | Released |
Category | Other |
Author | Pablo Corral Franco |
Leave a comment
Log in with itch.io to leave a comment.