manager.setEmissionDirection(new Vector3f(0,0,0)); manager.setEmissionMaximumAngle(360f * FastMath.DEG_TO_RAD);
manager.setEmissionDirection(new Vector3f(0,1,0)); manager.setEmissionMaximumAngle(45f * FastMath.DEG_TO_RAD);
  protected void initGame() {    root = new Node("Scene graph root");    root.setForceView(true);    main = new Node("Main node");    main.setForceView(true);    AlphaState as1 = display.getRenderer().getAlphaState();    as1.setBlendEnabled(true);    as1.setSrcFunction(AlphaState.SB_SRC_ALPHA);    as1.setDstFunction(AlphaState.DB_ONE);    as1.setTestEnabled(true);    as1.setTestFunction(AlphaState.TF_GREATER);    as1.setEnabled(true);    TextureState ts = display.getRenderer().getTextureState();    ts.setTexture(        TextureManager.loadTexture(        TestRenParticleGUI.class.getClassLoader().getResource(        "jmetest/data/texture/flaresmall.jpg"),        Texture.MM_LINEAR,        Texture.FM_LINEAR,        true));    ts.setEnabled(true);    TextureState font = display.getRenderer().getTextureState();    font.setTexture(        TextureManager.loadTexture(        TestRenParticleGUI.class.getClassLoader().getResource(        "jmetest/data/font/font.png"),        Texture.MM_LINEAR,        Texture.FM_LINEAR,        true));    font.setEnabled(true);    fps = new Text("FPS label", "");    fps.setRenderState(font);    fps.setRenderState(as1);    fps.setForceView(true);    fpsNode = new Node("FPS node");    fpsNode.attachChild(fps);    fpsNode.setForceView(true);    manager = new RenParticleManager(300, display.getRenderer().getCamera());    manager.setEmissionDirection(new Vector3f(0,0,0));    manager.setEmissionMaximumAngle(360f * FastMath.DEG_TO_RAD);    manager.setParticlesOrigin(new Vector3f(0,0,0));    manager.setParticlesSpeed(.06f);    manager.setStartSize(2.5f);    manager.setEndSize(.5f);    manager.setParticlesMinimumLifeTime(1200f);    manager.setStartColor(new ColorRGBA(1, 0, 0, 1));    manager.setEndColor(new ColorRGBA(0, 1, 0, 0));    root.setRenderState(ts);    root.setRenderState(as1);    root.attachChild(manager.getParticles());    main.attachChild(root);    root.updateGeometricState(0.0f, true);    fpsNode.updateGeometricState(0.0f, true);    frame = new GUIFrame(input);    controlFrame.updateFromManager();  }