Beta - agent stuck off the navmesh

Using followerEntity/aiDestinationSetter

I’m not sure how the agent ended up off the mesh, but my auto-recovery doesn’t work because it’s based on detecting an agent with speed of <0.01 and not at end of path etc.
In this case the agent is fluctuating position and speed so it’s not triggering my thresholds.

Here’s a link to some GIFs. Note I can’t add them to this post even though the validation says the max size is 16MB and my GIFS are all under 10.

The agent is basically right on target but distance is 0.11, and my arrive distance is usually very low like 0.1


I’ll try and build in a new detection for auto-recovery that is based on x/z position not changing.

1 Like

Not entirely sure this related, but something similar is this agent got stuck at least twice in this small cut in the mesh (which I think was made due to a graph update due to a fence object that was being placed).

This was triggering my new position based auto-recovery, and failing :stuck_out_tongue:
If I drag the agent away from the navmesh cut a bit they regain their path. The problem is they don’t seem to be avoiding that cut and keep getting stuck on it.

Another thing I’ll add to my auto-recovery is doing a graph update where the agent is stuck in case there is a cut in the mesh when there shouldn’t be.

This is indeed a bug. It will be fixed in the next beta update.