ParticleManager manager = new ParticleManager(200, display.getRenderer().getCamera());
ParticleManager manager = new ParticleManager(200);
  protected void simpleInitGame() {    display.setTitle("Joint Animation");    display.setVSyncEnabled(true);    cam.setLocation(new Vector3f(0.0f, 0.0f, 200.0f));    cam.update();    input.setKeySpeed(100);        lightState.setEnabled(false);    MilkToJme converter=new MilkToJme();    URL MSFile=TestMilkJmeWrite.class.getClassLoader().getResource(    "jmetest/data/model/msascii/run.ms3d");    ByteArrayOutputStream BO=new ByteArrayOutputStream();    try {        converter.convert(MSFile.openStream(),BO);    } catch (IOException e) {        System.out.println("IO problem writting the file!!!");        System.out.println(e.getMessage());        System.exit(0);    }    JmeBinaryReader jbr=new JmeBinaryReader();    URL TEXdir=TestMilkJmeWrite.class.getClassLoader().getResource(            "jmetest/data/model/msascii/");    jbr.setProperty("texurl",TEXdir);    i=null;    try {        i=jbr.loadBinaryFormat(new ByteArrayInputStream(BO.toByteArray()));    } catch (IOException e) {        System.out.println("darn exceptions:" + e.getMessage());    }    ((JointController) i.getChild(0).getController(0)).setSpeed(1.0f);    ((JointController) i.getChild(0).getController(0)).setRepeatType(Controller.RT_CYCLE);    i.setRenderQueueMode(Renderer.QUEUE_OPAQUE);    rootNode.attachChild(i);    AlphaState as1 = display.getRenderer().createAlphaState();    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().createTextureState();    ts.setTexture(        TextureManager.loadTexture(        TestFireMilk.class.getClassLoader().getResource(        "jmetest/data/texture/flaresmall.jpg"),        Texture.MM_LINEAR_LINEAR,        Texture.FM_LINEAR));    ts.setEnabled(true);    ParticleManager manager = new ParticleManager(200, display.getRenderer().getCamera());    manager.setGravityForce(new Vector3f(0.0f, 0.0f, 0.0f));    manager.setEmissionDirection(new Vector3f(0.0f, 1.0f, 0.0f));    manager.setEmissionMaximumAngle(0.20943952f);    manager.setSpeed(1.0f);    manager.setParticlesMinimumLifeTime(150.0f);    manager.setStartSize(10.0f);    manager.setEndSize(6.0f);    manager.setStartColor(new ColorRGBA(1.0f, 0.312f, 0.121f, 1.0f));    manager.setEndColor(new ColorRGBA(1.0f, 0.312f, 0.121f, 0.0f));    manager.setRandomMod(4.5f);    manager.setControlFlow(false);    manager.setInitialVelocity(0.12f);    manager.setGeometry((Geometry)((Node)i.getChild(0)).getChild(0));    manager.warmUp(60);    manager.getParticles().addController(manager);    manager.getParticles().setRenderState(ts);    manager.getParticles().setRenderState(as1);    manager.getParticles().setLightCombineMode(LightState.OFF);    manager.getParticles().setTextureCombineMode(TextureState.REPLACE);    ZBufferState zstate = display.getRenderer().createZBufferState();    zstate.setEnabled(false);    manager.getParticles().setRenderState(zstate);    rootNode.attachChild(manager.getParticles());  }