Given a start and goal ,how to find the shortest way in a navigation mesh?

Viewed 1448

I googled "A* algorithm on navigation mesh" only to get wrong ways to estimate g-values,like this

enter image description here

or this enter image description here

By summing up the length of the blue line segments ,we get the g-value ,but it's overestimated (g-value should be underestimated). This algorithm will return a optimized path ,but not guaranteed to be the shortest.

The only way I can think of is to draw a visibility graph based on the navigation mesh .But that would cost too much memory .

enter image description here

Are there any other ways to calculate the shortest way in a navigation mesh ?

1 Answers
Related