A* Pathfinding Project

Getting Recast Graph polygons that are unwalkable


#1

Hello,

is there any way to get areas that are not walkable from Recast Graph? And I don’t mean nodes that have Walkable == false, what I’m interested are the polygons that were cut away when scanning like the one marked red on screenshot below.


#2

Hi

Those “polygons” may not be polygons at all. They may be arbitrary 3D contours that may self intersect when viewed from above.

However if you want to extract these contours, you can do so using the GraphUtilities.GetContours method.
See https://arongranberg.com/astar/docs/graphutilities.html#GetContours


#3

Thank you for reply, this is what I was looking for.