Is there a way to easily make a Navigation polygon on a big map

Godot Version

godot_4.2

Question

i am making a game where i need enemies in a complex map. i alredy have the map and the colisions but i preferebly dont want to trace everything again since it is not a tile map. if you need any more information just ask i will provide it. thank you in advance

you can bake the navigation polygon using the collisions you have set up

how do i do that?

You need to put a navigationregion2d-node in your scene and then create a navigation polygon. Then you can choose a source_geometry_mode, this is relevant to consider which collisionshapes get considerd in the baking process. choose either SOURCE_GEOMETRY_GROUPS_WITH_CHILDREN or SOURCE_GEOMETRY_ROOT_NODE_CHILDREN. For the first one you need to give every physicsbody you want to be considered in a group and then set the group name in the navigationpolygon

1 Like