A short clip of my simple flocking simulator in action. Simulator is programmed in C++ and uses OpenGL for drawing.
The red "fishes" form schools based on boids algorithm. As a single fish gets more hungry (indicated by it turning brighter red), it starts to ignore its flocking behavior and heads for green food particle. Once it has eaten, it returns to following the flocking algorithm.
how many agents do you have there?
zebastianflores 2 years ago