I could use some help with how to calculate the NAVIGATION distance between two entities. I already know how to calculate the vector distance (that is what I am using now), but it does not work for enough scenarios.
Simple example... how far is it to the checkpoint?
Scenario: You are in a tunnel directly under the checkpoint, so your vector distance is very small. However, to get out of a long tunnel and navigate back to the checkpoint could be a very large distance.
How do I calculate the navigation distance to the checkpoint?
I suspect the "correct" answer involves a complex routine, but I do not need a precise answer... a good approximation will work fine. Perhaps something that calculates the Z angle between two entities and ignores anything higher than a certain angle?