AIPath(2D) agent can move off the navmesh

Hi Aron

please check the video for the bug description:

Hi

Your ‘pick next waypoint distance’ (AIPath) is veeery large compared to the agent’s radius. I’d recommend something closer to maybe 0.2-0.5 in this case.

See https://arongranberg.com/astar/docs/aipath.html#pickNextWaypointDist

the small value for this property will make the path very strange :joy:

For navmesh based graph you should pretty much always use the FunnelModifier. That will take care of that for you.

Thanks!

It’s working ! :grinning::grinning::grinning::grinning::grinning::grinning::grinning:

1 Like