Anatoly Gorodilov
Anatoly Gorodilov
Thank you for clarifying. A little backstory: my 2d top-down project was based on tilemaps and i used tilemap navigation first. But tilemaps create a separate region for every tile....
now its perfectly clear, thanks. Each outline must be in same winding. I changed my minimal reproduction project and all PackedVector2Array are CCW now. Problem still exists, try to turn...
Works fine in 3.5.1 btw, just for information. In any winding direction combinations. It was so useful for me to keep different winding for polygons outlines and for holes outlines,...
i found the exact coordinate, where error begins try this buttons, 475 works fine, 476 causes error [testtileminim475.zip](https://github.com/godotengine/godot/files/10329903/testtileminim475.zip)
Problem happens when B corner do not cross AC line  i'm really not good in C++, but i assume that problem may be in NavigationPolygon::make_polygons_from_outlines() function, that tries to...
Renamed issue because it seems not related to winding direction itself, but more to finding inner/outer outline algorithm
> I have no idea why make_polygons_from_outlines() should work in Godot 3.5 but not in Godot 4 as the navigation related code is identical in that part. Actually, this bug...
@kleonc how about this ^ solution? I've added offsets to prevent the "line" to go straight through other outline's point when outlines are snapped to grid (for example, like in...