Welt
StartReset
Time:
Calculations/Frame 10
Source Code; Licensed under MIT. See License
Welt Konfiguration
width = 3; height = 25; useRK4 = 1;//0=Eulerforward, 1=RK4 useRK4duringCreate = 0; useSemiImplicit = 0; speed=0.05;//genauigkeit mass=1; g=0.4;//gravity per frame stddist=19.6;//normaler Abstand zwischen Punkten federkonst=40;//federrkonst+dampinggconst; dampingconst=2.3;//dampinggconst/federkonst; fallhöhe=0; abstossungDist=7; abstossungForce=30; decayTime=600; shiftCanvasRight = -250;
Apply & Reset
Sprengung Konfiguration
maxenduranceDiagonal=9; maxenduranceHorizontal=9; maxenduranceVertical=10; endurancePushToPullRatio=3; sprengExec=function(time){//disconnect(1,2,3,4) disconnects the points [1,2] and [3,4] var fl; if(time == 0)return 50; if(time==50){ disconnect(2,0,2,1); disconnect(2,1,2,2); disconnect(1,0,2,1); disconnect(1,1,2,1); //disconnect(1,1,2,2); disconnect(1,2,2,1); return 180; } if(time==180){ disconnect(0,1,1,2); return 185; } if(time==185){ disconnect(0,1,0,2); return -1; } return -1; }