NavTestHelper.debugShowMesh(assetManager, debugNodes,(TiledNavMesh) a.getBaseAsset());
Asset b = new Asset("/tile/121_177/121_177.j3o", "/tile/121_177/121_177.j3o");
sin.getAssetManager().loadAsset(b, true);
if(b.getBaseAsset() instanceof Spatial ) {
Spatial n = (Spatial)b.getBaseAsset();
// Material mat = new Material(Singleton.get().getAssetManager().getJmeAssetMan(), "Common/MatDefs/Misc/Unshaded.j3md");
// mat.setColor("Color", ColorRGBA.randomColor());
Material mat = new Material(Singleton.get().getAssetManager().getJmeAssetMan(), "Common/MatDefs/Light/Lighting.j3md");
mat.setBoolean("UseMaterialColors",true);
mat.setColor("Diffuse",ColorRGBA.randomColor());
n.setLocalTranslation(Tile.getWorldPositionOfXTile(121)+IArea.TERRAIN_SIZE_HALF, 0f,Tile.getWorldPositionOfZTile(177)-IArea.TERRAIN_SIZE_HALF);
n.setMaterial(mat);
rootNode.attachChild(n);
}
/* System.out.println("tile x=121 should be world -9984:"+getWorldPositionOfXTile(121));
System.out.println("tile x=122 should be world -9728:"+getWorldPositionOfXTile(122));
System.out.println("tile z=176 should be world 8192:"+getWorldPositionOfZTile(176));