Closed
Description
This library is fantastic! I managed to get pathfinding working very easily for a game. Thank you so much @frapa.
But I have a question. How would you recommend adding holes to a navmesh?
Let's say we have a square:
[
[0, 0],
[0, 100],
[100, 100],
[100, 0],
]
But I don't want the whole square to be walkable. I would like to have a smaller inner square obstacle, for instance:
[
[20, 20],
[20, 80],
[80, 80],
[80, 20],
]
I managed to get this case working in the online editor by creating 2 polygons and connecting them: Shaped like [
and ]
.

That's fine for a simple case like this, but for a video game with a complex map and many obstacles in the middle of the map, I am not sure how to proceed. This method would be very tedious. Any recommendation?
Metadata
Metadata
Assignees
Labels
No labels