I'm using Godot 4.2.stable (on Windows), and I'm having an issue creating the boundary for a NavigationRegion2D.

I'm trying to follow along with this Zenva course "Real-Time Strategy Game with Godot 4",.

In the lesson, the instructor creates a NavigationRegion2D node. Within that node, creates a new NavigationPolygon, and then clicks the points for the polygon. When he closes the polygon, the polygon automatically tessellates, like so:

When I do the same thing, selecting the same points in the same order, my polygon doesn't automatically tessellate. (And the nav region is ignored when I run the scene).

But I have two extra buttons along the top that the video does not "Bake NavigationPolygon" and "Clear NavigationPolygon". If I click the "Bake NavigationPolygon" button, it does tesselate the poly, but with a large offset from the perimeter.

How do I make a navigation region that fills the polygon w/o an offset?

(Thanks)


  • Reduce the radius of the NavigationPoly inside the NavigationRegion2D. Set it to 0 and there is no offset


Reduce the radius of the NavigationPoly inside the NavigationRegion2D. Set it to 0 and there is no offset

    3 months later

    Signed up literally to say thank you for this! I was trying to work this out for ages, thinking it was me at fault, rather than Zenva's courses being out of date without a mention in the notes (once again).

    EDIT: 5mins later, I go to the next lesson and the first thing is telling me about this update. Zero mention of this on the LESSON PAGE IT IS ACTUALLY RELEVANT TO. Not best pleased haha