Queation about WaypointPath script

Hi~

I’m using WaypointPath & WaypointPathTester to find the path through several specific points.
But I find the last vector path is not the end point I inputs. (I’m sure the end point I inputs is on the grid graph).

Ex:
My waypoints are (0.5, 0.0, 3.5) … (0, 0, 0).
But the last vector path I get is (-0.5, 0, 0.5) not (0, 0, 0)

If I use seeker to find the path from (0.5, 0.0, 3.5) to (0,0,0). the last vector path will be (0,0,0).

Thanks

Hi

The WaypointPath script does not use any modifiers, so the last point in the path will be the position of the last node in the path. There might not be a node at (0,0,0), check your grid graph, maybe you want to offset it by (0.5,0,0.5) to make the nodes align correctly with the paths that you want to have. Try using Debug.DrawLine on the vector path elements and see how it looks.

Thanks for reply.
After I apply StartEndModifier on the path, I could get the same result (the same path) as seeker.StartPath().