-
//Bouncy_Balls //Originally created by Jeffrey Traer Bernstein http://murderandcreate.com/physics/ ( var width= 400, height= 400; var win= Window("Bouncy Balls", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width ...
-
... rty 'force' (x,y,z). Rotational constraints (with one axis, i.e. piston, hinge, ball) support also 'torque'. The constraints 'universal' and 'hinge2' can have two torques (properties 'torque1' and 'torque2'). Creation / Class Methods *lasti ...
-
... anced signal */ BlumBalance : BlumUGen { *ar { |in, angle| var left, right; var balL, balR; // check input is stereo this.confirmStereoInputs(in); #left, right = in; balL = 2.sqrt * ((pi/4) - angle).cos * left; balR = 2.sqrt * ((pi/4) - ang ...
-
//simple spring //mouse controls red ball (target) ( var width= 300, height= 300, w, world, wgrav, obj, trg, mp; //--world w= RedWindow("spring test", Rect(128, 64, width, height)).front; mp= w.mouse; wgrav= RedVector2D[0, 0.98]; world= Red ...
-
//more springs. RedSpring is just a simple helper class //mouse controls red ball (target) ( var width= 300, height= 300, w, world, wgrav, objs, sprs, trg, mp, n= 8; //--world w= RedWindow("more springs", Rect(128, 64, width, height)).front ...
-
//chain of springs. //mouse controls red ball (target) ( var width= 300, height= 300, w, world, wgrav, objs, sprs, trg, mp, n= 18; //--world w= RedWindow("chain of springs", Rect(128, 64, width, height)).front; mp= w.mouse; wgrav= RedVector ...
-
//spring construction inspired by soda constructor //mouse drags around balls ( var width= 300, height= 300, w, world, wgrav, sprs, over, n= 10; //--world w= RedWindow("soda springs", Rect(128, 64, width, height)).front; wgrav= RedVector2D[ ...
-
... arguments for the constraint (should be an Array). type The type of constraint (ball,hinge,hinge2,universal,fixed,slide,piston) world Access to the DimpleWorld camera Access to the camera in dimple cursor Access to the cursor in dimple drop ...
-
... etwork.setSpec( spec ); // if spec was not local, it may be included in the tar-ball // if ( network.spec.isNil ){ if ( reader.tarBundle ){ reader.extractFromTar( spec ++ ".spec" ); }; network.spec.fromFileName( reader.pathDir +/+ reader.fi ...
-
... s. Additionally, it can zip each file that is written, and bundle them in a tar-ball. This class uses the programs tar and gzip for the bundling and compression. The interface is written so that you can use this class easily instead of anot ...