int val = angleSlider.getValue(); particleMesh.setMaximumAngle((float) val * FastMath.DEG_TO_RAD); updateAngleLabels();
int val = gravYSlider.getValue(); if (particleMesh != null) particleMesh.getGravityForce().y = (float) val * 0.001f;
            public void stateChanged(ChangeEvent e) {                int val = angleSlider.getValue();                particleMesh.setMaximumAngle((float) val * FastMath.DEG_TO_RAD);                updateAngleLabels();                regenCode();            }