class ShooterWorm { int PRESET = 0; int PRESET_AMOUNT = 6; int SHOOTER_AMOUNT_MAX = 200; int[] SHOOTER_AMOUNT = { 30 , 30 , 60 , 80 , 70 , 50 }; float[] SHOOTER_PULL = { 0.05000, 0.03000, 0.33000, 0.40000, 0.80000, 0.56352 }; float[] SHOOTER_DRAG = { 0.22000, 0.20000, 0.50000, 0.45000, 0.58000, 0.66743 }; float[] SHOOTER_PRESSURE_FOLLOW = { 0.15000, 0.15000, 0.35000, 0.75000, 0.40000, 0.37751 }; float[] SHOOTER_GRAVITY = { 0.00000, 0.00000, 0.00000, 0.00000,-1.00000, 0.39951 }; float[] SHOOTER_HARDNESS = { 0.04000, 0.04000, 0.04000, 0.04000, 0.04000, 0.04000 }; float amountMorph; float pullMorph; float dragMorph; float pressureFollowMorph; float gravityMorph; float hardnessMorph; float MORPH_STRENGTH = 0.03; private boolean VISIBLE = true; private boolean RUNNING = true; Shooter[] shooter; ShooterWorm() { shooter = new Shooter[SHOOTER_AMOUNT_MAX]; for (int i=0;i2) { SHOOTER_AMOUNT[PRESET]--; amountMorph--; } } void randomizePreset0() { PRESET = 0; SHOOTER_AMOUNT[PRESET] = (int)random(SHOOTER_AMOUNT_MAX); SHOOTER_PULL[PRESET] = random(1.0); SHOOTER_DRAG[PRESET] = random(1.0); SHOOTER_PRESSURE_FOLLOW[PRESET] = random(1.0); SHOOTER_GRAVITY[PRESET] = random(-1.0,1.0); SHOOTER_HARDNESS[PRESET] = random(1.0); amountMorph = SHOOTER_AMOUNT[PRESET]; pullMorph = SHOOTER_PULL[PRESET]; dragMorph = SHOOTER_DRAG[PRESET]; pressureFollowMorph = SHOOTER_PRESSURE_FOLLOW[PRESET]; gravityMorph = SHOOTER_GRAVITY[PRESET]; hardnessMorph = SHOOTER_HARDNESS[PRESET]; println("Amount: "+amountMorph); println("Pull: "+pullMorph); println("Drag: "+dragMorph); println("PressureFollow: "+pressureFollowMorph); println("Gravity: "+gravityMorph); println("Hardness: "+hardnessMorph); } void setVisible(boolean v) { VISIBLE = v; for (int i=0;i