Particles(again) not updating


I have the following code:

I want to be able to generate an explosion!! It nearly works. Meaning that i can see the small sphere(just a test) and i can see like the last frame of the particle animation.

But i don't see the animation af the explosion occuring, or the particles fading away after the explosion - strange.

Am i missing some kind of update call every frame from the basegame???

I realize that you just helped GustavoBorba with a similar problem. Reading his topic did'nt help.

Any suggestions???

private ParticlePoints pPoints;
private Node model;

public Bomb(int x, int y) {
   this.model = new Node();
      this.model.setLocalTranslation(x, y, 0);
      this.model.attachChild(new TestSphere(0.15f,;

public void explode() {
      Renderer display = DisplaySystem.getDisplaySystem().getRenderer();
      if (display != null) {
         pPoints = ParticleFactory.buildPointParticles("particles", 300);
         pPoints.setLocalTranslation(1, 1, 1);
         pPoints.setEmissionDirection(new Vector3f(0, 1, 0));
         pPoints.setOriginOffset(new Vector3f(0, 0, 0));
         pPoints.setStartColor(new ColorRGBA(1, 0, 0, 1));
         pPoints.setEndColor(new ColorRGBA(0, 1, 1, 0));
         pPoints.setMaximumAngle(360f * FastMath.DEG_TO_RAD);

         BlendState as1 = display.createBlendState();

         ZBufferState zstate = display.createZBufferState();

         pPoints.setModelBound(new BoundingSphere());


i got it working


this.pc = (ParticleController) pPoints.getController(0);

and in my update call:

i = (float) (i + 0.001);

now i just have to make i part of the global game time somehow.