A* Pathfinding Project

Can't use seeker to search path on generated nodes: heap is empty


#1

Hi, I’ve just found a weird behaviour of the seeker:


As you can see, the grid graph has successfully generated nodes in my scene.

But no seeker can use it to find a path to a destination within the area.
It returns a warning: Searched whole area but could not find target
I went into the code and found this:


The heap in pathHandler has 261 members but the IsEmpty property returns true. Caused no path can be found with seeker. Any ideas what may caused this behaviour? And it doen’t seem to always be triggered in my case.


#2

Hi

The searched whole area message usually includes the number of nodes it did search. Can you see how many that was?
Are you using any node tags in your scene?