Additional cuts

In a recast graph, how can I add additional cuts at a certain position?
With NavMeshCut I can only cut holes in the mesh it seems.

I just need additional geometry around doors.

Hi

There is the NavmeshAdd component which might to what you want. However, its use case is very limited because the vertices that you add need to align perfectly with the existing navmesh.
Could you explain a bit more about what exactly you want to achieve?

I have doors, and when a door is closed, I set the tags of the nodes around it to ‘Closed Door’ so the AI can not walk through the door.

But the ‘geometry’ (triangles) created by the Recast Graph are very big in most rooms, so half the room gets marked as ‘Closed Door’. I’d like the graph to be more detailed around the doors, so only the area under the door and maybe half a meter infront of the door gets tagged as ‘Closed Door’.

Hi

I think you can get what you want by enabling the ‘isDual’ checkbox on the NavmeshCut component.

This video also shows an alternate approach: RecastMeshObj - A* Pathfinding Project

1 Like