/** * Called when switching between skyBox and spaceBox * * @param enable true if spaceBox. false if skyBox. */ public void enableSpaceBox(boolean enable) { if (enable) { rootNode.detachChild(loader.getSky()); rootNode.attachChild(loader.getSpace()); } else { rootNode.detachChild(loader.getSpace()); rootNode.attachChild(loader.getSky()); } }
/** Does some basic initialization to get the application started */ @Override public void simpleInitApp() { loader = new ResourceLoader(assetManager, cam, rootNode); rootNode.attachChild(loader.getSky()); cam.setFrustumFar(9000); gui = new GuiAppState(); stateManager.attach(gui); }