exit = {System.exit}; App.simRunning = false; time = {System.time}; sin = {math.sin}; cos = {math.cos}; pi = {math.pi}; sweet = {App.Background.skyColor = [.3, .4, 1, sin(System.time)]; App.fadeTranslate = [-19 * sin(time), -20 * sin(time)]; App.fadeColor = [1 * sin(time), 2 * sin(time), 1 * sin(time)]; App.fadeRotate = -50 * sin(time)}; 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]; }; groovyOntest = { App.fadeColor = [1, 0, 0.9]; App.fadeTranslate = { [3 * sin(time), 2 * sin(time)] }; App.fadeRotate = { sin(System.time*1.2) }; App.Background.skyColor = [0,10,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("f9", {App.fadeColor = [1, 0, 0.9]; App.fadeTranslate = { [3 * sin(time), 2 * sin(time)] }; App.fadeRotate = {sin(System.time*1.2) }; App.Background.skyColor = [0,10,0,0]; }); Keys.bind("f10", {App.fadeColor = [0, 0, 0]; App.Background.skyColor = [0.3, 0.4, 1, 1]; }); resetall = { SPH.bucketSize = 2.0; SPH.density = 1; SPH.friction = 0.00999999978; SPH.influence = 2.0; SPH.jitter = 0; SPH.pressMultiplier = 1; SPH.radius = 0.0500000007; SPH.restitution = 0; SPH.soundSpeed = 20; SPH.specialPressure = true; SPH.surfaceTension = 0; SPH.vaporizeTime = 5; SPH.velocitySmoothing = true; SPH.viscMultiplier = 1.0; SPH.viscosity = 0.5; GUI.clickTimeTolerance = 0.3; GUI.clickTolerance = 3.5; GUI.crispFontFactor = 0.5; GUI.crispFonts = false; GUI.fontShadow = true; GUI.fontShdowOffset = [0.0625, 0.0625]; GUI.opaqueness = 0.9; GUI.scale = 1.0; GUI.forceOSCursor = false; Sim.adHocSolver = false; Sim.airDensity = 0.01; Sim.airFrictionLinear = 0.01; Sim.airFrictionQuadratic = 0.0; Sim.airSwitch = true; Sim.defaultBodyDensity = 2.0; Sim.defaultBodyFriction = 0.5; Sim.defaultBodyRestitution = 0.5; Sim.fallLimit = 1000; Sim.gravity = [0.0, -9.8]; Sim.gravitySwitch = true; Sim.leapFrog = true; Sim.maxPositionCorrection = +inf; Sim.prioritizedSolver = false; Sim.rotFrictionLinear = 0.01; Sim.running = false; Sim.solveAccFactor = 1; Sim.solveConstant = 100000000; Sim.solveDconstraints = 5; Sim.solveDcontacts = 5; Sim.solveDistFactor = 1; Sim.solveIter = 30; Sim.solvePenetrationDamping = false; Sim.solvePreSortConstraints = true; Sim.solveRegularizationFactor = 1; Sim.solveVelFactor = 1; Sim.springForce = 1000; Sim.targetPenetration = 0.001; Sim.timeDelta = 0.01; Sim.timeFactor = 1.0; Sim.warmStart = true; Sim.warmStartFactor = 0.5; Console.color = [0.1, 0.1, 0.1, 0.8]; Console.delay = 0.3; Console.fade = false; Console.screenSize = 0.35; Console.scroll = true; App.Background.cloudOpacity = 0.9; App.Background.drawClouds = true; App.Background.skyColor = [0.3, 0.4, 1.0, 1.0]; App.autosaveTime = 30.0; App.borderWidth = 0.10; App.borders = true; App.chainDensityFactor = 20.0; App.dragToolStrength = 0.25; App.drawBCs = false; App.drawBodyCenters = false; App.drawCollisions = false; App.drawMapOBBs = false; App.drawOBBs = false; App.drawParticleCenters = false; App.drawParticleNeighbors = false; App.drawSelectionOBB = false; App.drawVertices = false; App.fadeColor = [0.0, 0.0, 0.0]; App.fadeRotate = 0.0; App.fadeScale = [0.95, 0.95]; App.fadeTranslate = [0.0, 0.0]; App.language = "English"; App.lineWidth = 4.0; App.maxPointDist = 0.5; App.maxSPHspawn = 10000; App.maxUndo = 25; App.metaCutoff = 0.5; App.minPointDist = 0.20; App.pointSize = 4.0; App.polyTCFactor = [10.0, 10.0]; App.selectColor = [1.0, 0.5, 0.5]; App.simRunning = false; App.simpleWater = false; App.waterColor = [0.1, 0.1, 1.0, 0.7]; App.waterElongation = 0.050; App.waterFanceyFactor = 10.0; App.waterMaxElongation = 2.0; App.GUI.autoGlue = false; App.GUI.dragUndo = true; App.GUI.drawHingesWhenRunning = true; App.GUI.freeDrawing = false; App.GUI.leftClickMenus = false; App.GUI.simpleMode = false; App.GUI.trapUser = false; App.GUI.zoomFactor = 0.2; System.antiAlias = 1; System.fullscreen = false }; bouncywater = {SPH.jitter=50}; bouncywateroff = {SPH.jitter=0}; heavywater = {SPH.density=100}; heavywateroff = {SPH.density=1}; stickywater = {SPH.friction=5}; stickywateroff = {SPH.friction=0.05}; chaos = { App.waterColor = [0.5, 0.699999988, 1.0, 0.699999988]; SPH.jitter = 88; SPH.density = 100; SPH.radius = 0.5 }; chaosoff = { App.waterColor = [0.100000001, 0.100000001, 1.0, 0.699999988]; SPH.jitter = 0; SPH.density = 1; SPH.radius = 0.0500000007 }; car = { Scene.addPolygon({ pos = [0.00934345182, -0.651033342]; geomID = 33089; entityID = 162; controllerReverseXY = false; controllerInvertX = false; controllerInvertY = false; collideSet = 1; density = 2.0; color = [0.467715919, 0.567116976, 0.670220912, 1.0]; controllerAcc = 10.8000002; zDepth = 0.0; collideWater = true; airFrictionMult = 1.0; restitution = 0.5; heteroCollide = false; vecs = [[2.13065672, 0.00436645746], [2.0234344, 0.0210331082], [1.91621208, 0.0376998186], [1.80898988, 0.0543664694], [1.70176768, 0.0710331202], [1.59454548, 0.0876997709], [1.48732316, 0.104366481], [1.38010097, 0.121033132], [1.27287877, 0.137699783], [1.16565657, 0.154366463], [1.05843437, 0.171033144], [0.951212108, 0.187699825], [0.843989909, 0.204366475], [0.791989923, 0.303033143], [0.739989936, 0.401699841], [0.687989891, 0.500366509], [0.635989904, 0.599033177], [0.583989918, 0.697699845], [0.471608967, 0.697699845], [0.359228015, 0.697699845], [0.246847034, 0.697699845], [0.134466097, 0.697699845], [0.0220851451, 0.697699845], [-0.0902958363, 0.697699845], [-0.202676773, 0.697699845], [-0.315057725, 0.697699845], [-0.427438676, 0.697699845], [-0.539819598, 0.697699845], [-0.652200639, 0.697699845], [-0.764581561, 0.697699845], [-0.876962543, 0.697699845], [-0.989343464, 0.697699845], [-1.10172451, 0.697699845], [-1.21410537, 0.697699845], [-1.32648635, 0.697699845], [-1.43886733, 0.697699845], [-1.55124831, 0.697699845], [-1.66362917, 0.697699845], [-1.77601016, 0.697699845], [-1.77601016, 0.591639221], [-1.77601016, 0.485578597], [-1.77601016, 0.379517972], [-1.77601016, 0.273457378], [-1.77601016, 0.167396754], [-1.77601016, 0.0613361597], [-1.77601016, -0.0447244644], [-1.77601016, -0.150785089], [-1.77601016, -0.256845653], [-1.77601016, -0.362906277], [-1.77601016, -0.468966901], [-1.66418493, -0.473288596], [-1.55235958, -0.477610409], [-1.44053435, -0.481932104], [-1.32870913, -0.486253917], [-1.2168839, -0.490575612], [-1.10505855, -0.494897425], [-0.993233204, -0.49921912], [-0.881407917, -0.503540933], [-0.769582689, -0.507862628], [-0.657757461, -0.512184441], [-0.545932174, -0.516506135], [-0.434106946, -0.52082783], [-0.322281629, -0.525149643], [-0.210456312, -0.529471338], [-0.0986311212, -0.533793151], [0.0131942024, -0.538114846], [0.125019416, -0.542436659], [0.236844733, -0.546758354], [0.348669946, -0.551080167], [0.460495144, -0.555401862], [0.57232058, -0.559723675], [0.684145749, -0.56404537], [0.795970976, -0.568367183], [0.907796204, -0.572688878], [1.01962161, -0.577010691], [1.13144672, -0.581332386], [1.24327195, -0.58565408], [1.35509741, -0.589975893], [1.46692264, -0.594297588], [1.57874787, -0.598619401], [1.69057298, -0.602941096], [1.80239844, -0.607262909], [1.91422367, -0.611584604], [2.0260489, -0.615906417], [2.13787413, -0.620228112], [2.24969959, -0.624549925], [2.36152482, -0.62887162], [2.32304668, -0.52333194], [2.28456879, -0.417792261], [2.24609065, -0.312252581], [2.20761275, -0.206712902], [2.16913486, -0.101173222]]; friction = 0.5; angle = 0.0 }); Scene.addCircle({ pos = [-1.27333343, -1.01333356]; geomID = 33099; entityID = 172; controllerReverseXY = false; controllerInvertX = false; controllerInvertY = false; radius = 0.532207191; collideSet = 1; density = 2.0; color = [0.363000005, 0.204999998, 0.412999988, 1.0]; controllerAcc = 10.8000002; zDepth = 1.0; collideWater = true; airFrictionMult = 1.0; restitution = 0.5; heteroCollide = false; friction = 0.5; angle = -1.78538942 }); Scene.addCircle({ pos = [1.85905457, -1.12000024]; geomID = 33229; entityID = 174; controllerReverseXY = false; controllerInvertX = false; controllerInvertY = false; radius = 0.532207191; collideSet = 1; density = 2.0; color = [0.363000005, 0.204999998, 0.412999988, 1.0]; controllerAcc = 10.8000002; zDepth = 2.0; collideWater = true; airFrictionMult = 1.0; restitution = 0.5; heteroCollide = false; friction = 0.5; angle = -1.78538942 }); Scene.addHinge({ motorSpeed = 1.57079637; ccw = false; autoBrake = false; geom0pos = [-2.50154102e-08, 7.09975012e-08]; distanceLimit = +inf; entityID = 173; geom1pos = [-1.28267682, -0.362300217]; color = [0.5, 0.5, 0.5, 1.0]; impulseLimit = +inf; size = 0.150481954; zDepth = 3.0; geom0 = 33099; motor = false; motorTorque = 100.0; geom1 = 33089 }); Scene.addHinge({ motorSpeed = 1.57079637; ccw = false; autoBrake = false; geom0pos = [2.40085996e-09, 1.03846595e-07]; distanceLimit = +inf; entityID = 175; geom1pos = [1.84971118, -0.468966901]; color = [0.5, 0.5, 0.5, 1.0]; impulseLimit = +inf; size = 0.150481954; zDepth = 4.0; geom0 = 33229; motor = false; motorTorque = 100.0; geom1 = 33089 }); Scene.addGroup({ name = "selected"; entityIDs = [] }) }