AI – Flocking Behavior

BunnyTornado

Bunny Tornado – I’ve been working on Artificial Intelligence for flocking and herd behavior for the last couple days.  The good news is, it works… to an extent. The bad news…  Messing with the values creates all sorts of wonderful behavior.  Here we get to witness the amazing unrelenting ferocity of the first ever sited Bunny Tornado!  Such a rare occurrence in nature is finally captured on film.  As we watch the alpha male lead the pack in a dizzying display of agility and raw power in an attempt to attract the attention of the local females.  Only in nature can such wonderful and breathtaking beauty ever be witnessed.  Definitely a once in a lifetime opportunity.

This is easily solved but was too unexpectedly wonderful to pass up not posting.  The bunnies are all vying for the same relative location but the collision volumes are causing them to  stack due to the lack of space.  Reducing cohesion values fixes it but I still have plenty of tweaking to do to get them to properly flee from the player correctly.  Currently the whole batch is hard coded to a single flock.  This prevents them from every breaking apart into multiple flocks and makes them particularly easy to hunt.  Hopefully round two will be a bit more successful.