Scan not working on terrain

Have used Astar Path component succesfully in the past, however with a simple setup in a new scene I don’t seem to be getting normal display overlay.

https://www.dropbox.com/s/v750ruytsg3l4jd/astar_issue.png?dl=0

https://www.dropbox.com/s/koghwwxvecbiovu/astar_issue_2.png?dl=0

Colours don’t seem to align with those in settings to indicate what the issue is.

Seems rays are being cast and hitting terrain, but pathfinding does not work on this graph.

Any ideas?

Thanks

Hi

That looks perfectly fine. The different colors simply indicate different connected components of the graph (i.e different areas such that there is no valid path between nodes of node color to nodes of another color).

You may want to tweak your ‘Max Climb’ setting as well as the ‘Max Slope’ setting, but that depends on the game.

Thanks for fast reply. What threw me was that every other time I used it the walkable areas were coloured green, but if I understand it correctly now, they can be any colour, different for each connected patch of walkable nodes…?

Yes. That is exactly right.