Shortest path on FindPath

How I can find the shortest path on navigation->FindPath? I already tried to use FindNearestPoint before to use FindPath, but didnt work.

Game found the path on white lines, my question its: why the game didnt find a shortest path, like the red line?

Same happens here:

Someone knows if has a solution for that?
Thanks.

https://github.com/recastnavigation/recastnavigation/issues/239

3 Likes