A* Pathfinding Project

Point graph drawing connections to recast graph?


#1

Hi — I have created both a point graph and recast graph in my scene. I switch between both graphs for my agent depending on certain criteria. However, when using the point graph, a connection gets drawn out towards empty terrain — something that is completely unexpected. Upon closer look, It seems that the recast graph is drawing connections to some points on my point graph (not all the points). https://i.imgur.com/K1coj7x.png

I have set the max distance in my point graph to something like 0.5 but these connections are still drawn. How do I fix this issue? Thanks.


#2

Hi

There is a code example for another overload of that method here: https://arongranberg.com/astar/docs/pathutilities.html#IsPathPossible I hope that helps :slight_smile: