Flocking Simulation
Physics AI module coursework in C++, OpenGL 4 and the BulletPhysics SDK. The brief was to simulate how birds behave and form flocks as they fly around.
Features:
BulletPhysics SDK, OpenGL 4 and C++
Each bird has a cone of vision
Thrust, lift and torque applied on each bird.
Flocks are formed dynamically. No set leader. Instead, each bird follows its neighbors. That means that a different number of total flocks can be formed, and flocks can also merge or break.
Steering forces will keep the birds within game space, make them avoid obstacles and keep a distance from each other to prevent the formation from breaking.