Support Forum

How To Create Path Along GraphNode List

Hi, i have an graphnode list i want to create a path and move my ai with it.

How i can do that? i tested this;

var path = new ConstantPath()
{
     allNodes = graphNodes
};

but it returns error. Not the path i think but this;

_aiPath.SetPath(path);

Hi

You can use ABPath.FakePath.

See ABPath - A* Pathfinding Project

Can i pass non vector but graphnode only?
By using ABPath.FakePath(null, graphNode) ?

No, but you can just make a list of all the node positions and pass it there.