Keys.bind("escape", {System.exit}); exit = {System.exit}; App.simRunning = false; time = {System.time}; sin = {math.sin}; cos = {math.cos}; pi = {math.pi}; groovyOn = { App.fadeColor = [0.8, 0, 0.9]; App.fadeTranslate = { [3 * sin(time), 2 * sin(time)] }; App.fadeRotate = { sin(System.time*1.2) }; App.Background.skyColor = [0,0,0,0]; }; groovyOff = { App.fadeColor = [0, 0, 0]; App.Background.skyColor = [0.3, 0.4, 1, 1]; }; Keys.bind("f4", {Sim.gravitySwitch = ! Sim.gravitySwitch}); Keys.bind("f6", {App.drawBodyCenters = ! App.drawBodyCenters}); Keys.bind("f7", {App.drawVertices = ! App.drawVertices}); Keys.bind("f8", {App.drawCollisions = ! App.drawCollisions}); Keys.bind("f12", {System.screenshot}); Keys.bind("f2", {App.fadeColor = [0, 0, 0]; App.Background.skyColor = [0.3, 0.4, 1, 1]}); Keys.bind("f3", {GUI.opaqueness = 0.9 - GUI.opaqueness}); waterforever= {SPH.vaporizeTime =100000}; waterforeveroff= {SPH.vaporizeTime = 5}; crazywater = {SPH.jitter=1000}; crazywateroff = {SPH.jitter=0}; evaporate= {SPH.vaporizeTime = 0}; evaporateoff= {SPH.vaporizeTime = 5}; increaseundo= {App.maxUndo = 2500}; increaseundooff= {App.maxUndo = 25}; gravityup= {Sim.gravity = [0.0, 9.80000019]}; gravitydown= {Sim.gravity = [0.0, -9.80000019]}; gravityleft= {Sim.gravity = [-9.80000019,0.0 ]}; gravityright= {Sim.gravity = [9.80000019,0.0 ]}; gravityswitch= {Sim.gravitySwitch = ! Sim.gravitySwitch}; screenshot= {System.screenshot}; megagravup= {Sim.gravity = [0.0, 40]}; megagravdown= {Sim.gravity = [0.0, -40]}; megagravleft= {Sim.gravity = [-40,0.0 ]}; megagravright= {Sim.gravity = [40,0.0 ]}; ultragravityup= {Sim.gravity = [0.0, 100]}; ultragravitydown= {Sim.gravity = [0.0, -100]}; ultragravityleft= {Sim.gravity = [-100,0.0 ]}; ultragravityright= {Sim.gravity = [100,0.0 ]}; explodingwater= {SPH.viscosity = 40}; explodingwateroff= {SPH.viscosity = 0.5}; bouncingwater= {SPH.viscosity = 5}; bouncingwateroff= {SPH.viscosity = 0.5}; trap= {App.GUI.trapUser = ! App.GUI.trapUser}; drawbodycenter= {App.drawBodyCenters = ! App.drawBodyCenters}; drawvertical= {App.drawVertices = ! App.drawVertices}; drawcollision= {App.drawCollisions = ! App.drawCollisions}; simplemode= {App.GUI.simpleMode = ! App.GUI.simpleMode}; drawhinge= {App.GUI.drawHingesWhenRunning = ! App.GUI.drawHingesWhenRunning}; autoglue= {App.GUI.autoGlue = ! App.GUI.autoGlue}; dragundo= {App.GUI.dragUndo = ! App.GUI.dragUndo}; freedrawing= {App.GUI.freeDrawing = ! App.GUI.freeDrawing}; leftclickmenu= {App.GUI.leftClickMenus = ! App.GUI.leftClickMenus}; simplewater= {App.simpleWater = ! App.simpleWater}; drawclouds= {App.Background.drawClouds = ! App.Background.drawClouds}; nomenu= {GUI.opaqueness = 0.9 - GUI.opaqueness}; bounce = { App.fadeColor = [0.8, 70, 12]; App.fadeTranslate = { [0 * sin(time), 100 * sin(time)] }; App.fadeRotate = { sin(System.time*2.4) }; App.Background.skyColor = [0,0,0,0]; }; bounceoff= { App.fadeColor = [0, 0, 0]; App.Background.skyColor = [0.3, 0.4, 1, 1]; }; blur = { App.fadeColor = [0.8, 70, 12]; App.fadeTranslate = { [6 * sin(time), 7 * sin(time)] }; App.fadeRotate = { sin(System.time*2.4) }; App.Background.skyColor = [0,0,0,0]; }; bluroff= { App.fadeColor = [0, 0, 0]; App.Background.skyColor = [0.3, 0.4, 1, 1]; }; resetbackground= { App.fadeColor = [0, 0, 0]; App.Background.skyColor = [0.3, 0.4, 1, 1]; }; gravitycrush= {Sim.gravity = [0.0, -10000]}; gravitycrushoff= {Sim.gravity = [0.0, -9.80000019]};