[java]Mesh mesh = myLevel.getGeometry(“NavMesh”).getMesh();
NavMesh navMesh = new NavMesh(mesh);[/java]
I’ve already generated a NavMesh for my scene’s terrain by right clicking the terrain > Add Spatial > Nav Mesh. However, I don’t know how I’m going to access the NavMesh.
getChild(“NavMesh”); is actually what you want to find a spatial that is a child of a node. The scene (“ground”) will be a node, so you will have to cast it to that first.