Пример #1
0
 /**
  * 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());
   }
 }
Пример #2
0
  /** 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);
  }