0 votes

I'm using Godot's master branch right now. My project has a GridMap with a bunch of cubes to form a map. The navigation seems to be working and the enemies I have are successfully avoiding the walls and coming towards me. However, I also have some code that procedural generates parts of the GridMap and then calls bake_navigation_mesh() on the NavigationRegion3D which is the parent of that GridMap. The navigation doesn't seem to update after generating the map, and I'm worried this error that appears 6 times in the console each time I launch my project might be related.

Attempted to merge a navigation mesh triangle edge with another already-merged edge. This happens when the current cell_size is different from the one used to generate the navigation mesh. This will cause navigation problem.

Edit: Through lots of debug prints in the engine's source, I've found that the issue is actually just that my GridMap is too large and it takes too long to add 232748 navigation meshes. Does anyone know a shortcut I can use to speed this up?

Godot version 4.0.dev
in Engine by (12 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.