algorithmimplementationboids

Insects following the leader - can I implement Boids algorithm for that?


I would like to illustrate how insects are following their leader in 2 dimensions. How can I acomplish that? Is it possible to do this with Boids algorithm? Or maybe someone knows another algorithm, designed especially for that reason?


Solution

  • Boids-style algorithms should be fine for this, however you will probably need to tweak the algorithm and experiment a bit before you get something that looks really good. You'll get something like leader/follower behaviours providing you do the following: