Flocking Birds - Boids Implementation
MADE over 3 days IN may 2016
After reading about Autonomous Agents in Daniel Shiffman's book, "The Nature of Code", I was keen to try out implementing a version of the Boids program developed by Craig Reynolds. The project was developed in Unity 5 and was based off the implementation described here: http://natureofcode.com/book/chapter-6-autonomous-agents/.
Each bird or 'boid' has 3 simple rules that it follows; separation, alignment and cohesion.
Separation makes the birds move slightly away from each other so that they don't overlap.
Alignment makes the birds move in the same direction as nearby birds.
Cohesion makes the birds move towards nearby birds.
By having a list of these birds, all following the three rules, a flock is created. The result can be seen below.
Each bird or 'boid' has 3 simple rules that it follows; separation, alignment and cohesion.
Separation makes the birds move slightly away from each other so that they don't overlap.
Alignment makes the birds move in the same direction as nearby birds.
Cohesion makes the birds move towards nearby birds.
By having a list of these birds, all following the three rules, a flock is created. The result can be seen below.