|Topic was automatically imported from the old Question2Answer platform.
I have some issues to create a navigation mesh for a procedural dungeon.
I’m using scenes as tiles. I don’t use a Grid, because it support only one mesh.
I could use a 3D software like Blender to create a tile, but I never used Blender, and it’s more effisciently to edit the scene in the game engine to make updates for my tiles (and create some variations of them)
So at this point I can create a procedural dungon, but without a navmesh.
The NavigationMeshInstance have a button to bake a navmesh from a scene. It’s perfect if I create my dungeon manualy in the editor. But this function seems not present in GDScript to call it at runtime.
I had the idea to create a NavigationMeshInstance for each subscene, and merge them at the end of the procedural generation. But the vertices of each navmesh are not the same. So A* algorithm can found a path only inside a subscene. Not for the entire dungeon.
Finally, I searched in the source code of Godot the algorithm for the Bake function is the editor to find a solution ( maybe create a module to export this function in GDScript ?) but I did not find it ?
Anyone have suggestion about this ?