AI – Round 2

AIFlocking1

 

Rudimentary AI flocking is now enabled!  The herd of test bunnies now mingle and flock reasonably well all on their own.  On top of that they are set up to flee the players presence when engaged. More gifs after the link.

Still lots to do for AI in general.  Although they flock together when left alone it’s definitely more fish like than anything.  I will have to investigate how to intermix their own AI behavior into the flocking patterns.  Having them not move constantly will probably be the biggest plus to more natural movement.

AIFlocking2Small

Giving them the ability to halt and idle will give some opportunity to inject some other animations once I get to that point.  Hopefully that’ll break it up a bit more.  Although the .gif below doesn’t show it their flee behavior breaks down a bit after they flee out of the players immediate range.  Currently they all flock back up behind the player, making it easy to do a loop and re-attack.  On top of that I’m not particularly happy with how little the flock stays together during the fleeing stage.  Initial attempts to sort this out were unsuccessful.  I’m gonna have to try a different approach and watch a ton of nature videos to see what else I can add to make it feel a bit more natural.

AIFlocking3