Hey all. I'm new to jME and I'm having a bit of problem with particles. I'm getting them to display just fine, but they seem to be generating at the origin briefly before being attatched to the node. Even when the release rate is zero, it looks like at least one particle still spawns. Is there any way to fix this?
Random rand = new Random();
ParticleMesh particleGeom = ParticleFactory.buildParticles("teleportflare", 150);
particleGeom.getParticleController().setActive(false);
particleGeom.setEmissionDirection(new Vector3f(0,1,0));
particleGeom.addInfluence(SimpleParticleInfluenceFactory
.createBasicGravity(new Vector3f(0, 0.6f, 0), true));
particleGeom.setMaximumAngle(3.1415927f/2f);
particleGeom.setMinimumAngle(0);
particleGeom.getParticleController().setSpeed(0.07f);
particleGeom.setInitialVelocity(0.02f +(rand.nextFloat() / 500));
particleGeom.setStartSize(.1f);
particleGeom.setEndSize(.05f);
particleGeom.setMinimumLifeTime(60f);
particleGeom.setMaximumLifeTime(75f);
particleGeom.setStartColor(ColorRGBA.red);
particleGeom.setEndColor(ColorRGBA.yellow);
particleGeom.getParticleController().setControlFlow(true);
particleGeom.getParticleController().setRepeatType(Controller.RT_WRAP);
particleGeom.setReleaseRate(300);
particleGeom.warmUp(10);
particleGeom.setLightCombineMode(LightState.OFF);
this.attachChild(particleGeom);
particleGeom.getParticleController().setActive(true);