int val = emitXSlider.getValue(); if (particleMesh != null) { particleMesh.getEmissionDirection().x = (float) val * .1f; particleMesh.updateRotationMatrix(); }
int val = gravXSlider.getValue(); if (particleMesh != null) particleMesh.getGravityForce().x = (float) val * 0.001f;
            public void stateChanged(ChangeEvent e) {                int val = emitXSlider.getValue();                if (particleMesh != null) {                    particleMesh.getEmissionDirection().x = (float) val * .1f;                    particleMesh.updateRotationMatrix();                }                regenCode();            }