Hi!
After looking through the support forum, I found out that the simplest way to draw a line of the Path in Game Mode is to use Vectrosity. All Vectrosity needs is a Vector3 List that has all the nodes that are supposed to be connected. How can i get all nodes (GridGraph) of an AIPath in Vector3 format?
Thanks for the help!
Hi
It sounds like you want ai.GetRemainingPath
. See IAstarAI - A* Pathfinding Project
1 Like
Thanks for that quick response! Though, I want to see if buffer contains a specific (Vector3)node.position, but it doesn’t find it within that list. Does GetRemainingPath return all Vector3 positions of the nodes?
It does not return all Vector3 positions. You could use GetComponent<Seeker>().GetCurrentPath().vectorPath
for that. Or just GetComponent<Seeker>().GetCurrentPath().path
if you are interested in the nodes themselves.