private void addNavWithMesh(EntityNavigationManager em, String file) {
try {
// NavigationMesh m = getNavMesh(meshFile+".jnv", 128, x, y, z);
Geometry grid = (Geometry) assetManager.loadAsset(file+".j3o");
Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
mat.setColor("Color", ColorRGBA.randomColor());
grid.setMaterial(mat);
TangentBinormalGenerator.fixTileNormals(grid.getMesh(), IArea.TERRAIN_SIZE_HALF, 0.05f);
TangentBinormalGenerator.generate(grid.getMesh(), false);
grid.updateGeometricState();
rootNode.attachChild(grid);
TiledNavMesh m = (TiledNavMesh) assetManager.loadAsset(file+".jnv");//BinaryImporter.getInstance().load(new File(file+".jnv"));
em.attachMesh(m);
} catch (Exception e) {
// TODO Auto-generated catch block