Pathfinding using waypoints help

Blitz3D Forums/Blitz3D Programming/Pathfinding using waypoints help

Looking at the picture, I would think you just need to add all distances ?

Hope this would make any sense than:
You can determine "direct" distances. That would be distances between two points that are connected.
And "indirect" distances. Distances between two points that are connected via another point.

First, calculate all direct distances.
Then, calculate all indirect distances by adding the direct distances to each other.

example:

Phase 1
Point 0->1=100 units
Point 1->2=125 units
Point 2->3= 75 units

Phase 2
Point 0->2=225 units
Point 0->3=300 units
etc.