Download

Techniques to prevent AI pawn from getting stuck

Hi, on landscapes with lots of rocks, trees and various geometry bumps, an AI pawn can get stuck while following its navmesh path. Would you have any recommandation to:

  1. prevent this from happening
  2. being able to detect when this is happening
  3. unstuck the pawn when happening

Thanks!

You can line tracing, or maybe a collision sphere, to detect certain actors that should be avoided. If stuck, you can have the pawn, step back to its previous location and try again.

Thanks AlonzoCPO. Yes I guess I can work on that, but that’s a bit vague though :slight_smile: I’d like to know if some game developers had this problem already and if they can provide hints on the way they solved it.