[solved] Problem with particles

Ive run into a problem with the particles in JME.

Everything works fine up until the point where the FPS drops below 90. At this point the explosions start generating at 0,0,0 instead of at the position vector i pass to them ( ive checked the vector and it prints the correct values out )

Everything is fine.

FPS goes below 90 and the position is broken.

public class Bullet extends Node {
   private Vector3f position = new Vector3f();
   private float angle=0;
   private float velocity=0;
   boolean alive = true;
   float distance = 0;
   float explodeDist = 60f;
   Vector3f origPos = new Vector3f();
   public Bullet(){
      attachChild(ModelLoader.getModel3ds(new File("res/bullet.3ds")));
   public void update(float tpf){
      distance = getLocalTranslation().distance(origPos);
      velocity = (tpf*60)*0.9f;
        if(distance >= explodeDist){
   public void fire(Vector3f origin, float nangle){
      angle = nangle;
      setLocalRotation(new Quaternion().fromAngleAxis((
              FastMath.PI * angle)/180, new Vector3f(0,1,0)));
               // .multLocal(4f));
   public Vector3f getPosition(){
      return position;
   public boolean isAlive(){
      return alive;

public class ExplosionFactory extends Node {
   private ArrayList<Node> explosions = new ArrayList<Node>();
   private static ExplosionFactory instance;
   public ExplosionFactory(){
      instance = this;
   public Node loadExplosion(){
      Node pMesh=null;
         pMesh = (Node) BinaryImporter.getInstance().load(
            new File("res/explosion.jme"));
      }catch(IOException e){}
      return pMesh;
   public static ExplosionFactory getInstance(){
      return instance;
   public void createExplosion(Vector3f pos){
      Node pMesh = loadExplosion();
   public void explode(Vector3f pos, Node pMesh){
       ArrayList children = pMesh.getChildren();
       for(int n = 0; n<children.size();n++){
          ParticleMesh p = (ParticleMesh)pMesh.getChild(n);
   public void update(){
      for(int x = 0; x<explosions.size();x++){
         Node parent = explosions.get(x);
         ParticleMesh n = (ParticleMesh)explosions.get(x).getChild(4);

I don't see you calling updateGeometricState anywhere after creating the explosion; this is necessary for the world vectors to be updated so they reflect the current transformation state.

Thanks. I had the same problem with setLocalTranslation and that really helped me out