Help with NavigationRegion2D
Asked Answered
G

3

0

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)

Goldman answered 18/12, 2023 at 16:37 Comment(0)
W
0


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

Wanigan answered 19/12, 2023 at 7:23 Comment(0)
G
0

Wanigan Thank you!

Goldman answered 19/12, 2023 at 15:49 Comment(0)
R
0

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

Retrench answered 23/3 at 2:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.