Fast enemy moving through walls

I’m using RecastGraph and RichAI for movement. Everything worked fine, until I recently increased the runspeed of the AI by quite a lot.

Now, when the AI runs towards the player, it will sometimes run into the wall behind the player (so it moves outside of the nav mesh).

What settings can I change to fix that? I suspect the npc is moving faster than it’s path is updated?
The only thing I can think about is decreasing Recalculate paths - Maximum Intervall, so paths are recalculated more often.

Edit: I’m also using Funnel Modifier.

Is there anything else I’m missing?


How much did you increase the speed?
If it’s too much you may want to use sub-stepping when calculating the movement.

This involves running ai.MovementUpdate multiple times in a single Update loop with smaller delta times:
See IAstarAI - A* Pathfinding Project
That will make it more robust at high speeds.