@Override
        public void initialize(AppStateManager stateManager, Application app) {
            super.initialize(stateManager, app);
            //only generate data and attach node when we are actually attached (or picking)
            initData();
            application = (SimpleApplication) app;
            application.getRootNode().attachChild(getRootNode());
            application.getStateManager().attach(physicsState);
        }
WorldOfInception - Find the galaxy center ;)

@author normenhansen
jme3-examples/src/main/java/jme3test/games/WorldOfInception.java