int val = emitZSlider.getValue(); if (particleMesh != null) { particleMesh.getEmissionDirection().z = (float) val * .1f; particleMesh.updateRotationMatrix(); }
int val = speedSlider.getValue(); particleMesh.getParticleController().setSpeed((float) val * .1f); updateSpeedLabels();
            public void stateChanged(ChangeEvent e) {                int val = emitZSlider.getValue();                if (particleMesh != null) {                    particleMesh.getEmissionDirection().z = (float) val * .1f;                    particleMesh.updateRotationMatrix();                }                regenCode();            }