Particle manager - Attached to geometry

Well I am strugling with an offset problem. I have some geometry that should emit fire but the fire is emitted with an offset.



Unfortunatly I cannot create any simple case that replicates the error. The onyl way I can remove the offset is to remove a line in Jme



This is com.jmex.effects.ParticleManagerline 189-197 in current CVS. The line is "getWorldRotation().set(0,0,0,1);"



Perhaps someone would explain what this part of the code does and why its nessesary to "reset" worldrotation?



        // overriding the worldRotation allows the programmer to attach the particles
        // to things which have changing rotation without ruining the particle bill-
        // boarding.
        particlesGeometry = new TriMesh("particles") {
            private static final long serialVersionUID = 1L;
            public void updateGeometricState(float time, boolean initiator) {
                super.updateGeometricState(time, initiator);
                if (geoToUse == GS_MESH) {
                    psMesh.getWorldRotation().mult(emissionDirection, worldEmit);
                } else
                   getWorldRotation().mult(emissionDirection, worldEmit);
     
                 //  getWorldRotation().set(0,0,0,1);
            }

the world rotation is reset to make sure the billboarding of the particles is correct.  In any case, don't fret too much over your particles because much improved code for the particle system will be in there soon

allright…I wont then