Have a big enemy ignore smaller enemies while moving trough navmesh

Hi everyone,

Currently my AI works perfectly, using behaviour trees, detouraicrowdcontrollers.

Right now my only issue is that i recently added to my games a new enemy, really big, but while moving it will try to avoid the other smaller enemies. Not really sure what would be the proper way to have it go to the shortest path as usual, but dont have it trying to avoid the other smaller enemies.

Only suggestions about the proper way to implement this are more than welcome.

Thanks.

  • navmesh agent type

  • RVO avoidance

  • collision layer

  • dynamic obstacle

  • Navmesh agent is about configuring several different navmesh and tell each enemy which navmesh he can walk on.

  • RVO avoidance is about telling a character movement to ignore / avoid an array of other entities when walking

  • Collision layer is pretty straightforward, I think you’ll have to tell your AI capsule component that it does not block smaller units

  • Dynamic obstacle is a property which actors have, I’m not sure how it behaves but it might be interesting to look at it

You can easily look how to setup these things on the internet :slight_smile:

2 Likes

Thank you very much Yun-Kun, i will look up all of that.