I am trying to come up with a plan of dividing the scene in to small chunks and then build a level using the small assets. However, each asset could be a building for eg and the city could be made with roads and a random collection of buildings player can enter. Road will have it's own navmesh.
However, I am wondering if there is a way to use CSGCombiner to generate the master navmesh up on ready.
For eg: pick all the child meshes belonging to say "nmx" group from each asset, add them as children to a CSGCombiner, set operation to "union" and then extract the result. This resulting mesh can then be sent to NavigationMesh.new to create the actual navmesh for the whole level.
Am I getting it completely wrong? I managed to start off but stuck at extracting the result of the CSG operation
Any help greatly appreciated.
If there is a better way to have each asset carry it's own navmesh and then join them on _ready, please guide me :-)
for n in px:
## NOW WHAT!!!