Get the nodes from a point a to a point b

Hello, is there a function that returns all the nodes through which a straight line passes from a position to a destination?

You can use a Linecast method and pass a list to the trace parameter. Then it will fill the list with all the nodes that the linecast passes through.

See GridGraph - A* Pathfinding Project

1 Like

incredible function! thank you very much, if you remove the obsolete tag I would appreciate it because it works very well

Hi

There’s no obsolete tag on it?

ok, i found another similar non-deprecated linecast function, thanks!

1 Like