5. Food Source Generation - LariWa/BoidSimulation GitHub Wiki
Building on top of the already existing target behaviour, we decided to implement a mechanism to generate food sources at a random position within the aquarium in order to have the boids react to dynamically placed objects. After a food item is introduced, the boids will adapt their path towards the food source.
Figure 1 - Swarm heading towards food source