-
... ods setIntegrator setGravity setDrag tick clear makeParticle removeParticle makeSpring removeSpring makeAttraction removeAttraction Inherited instance methods Classes (extension) | TraerPhysics TraerParticleSystem Extension takes care of gr ...
-
... age.div(10).rand.do{|i| var q= physics.particles.choose; if(p!=q, { physics.makeSpring(p, q, 0.1.rand, 0.25.rand, 10.rand+10); }); }; }; usr.mouseMoveAction= usr.mouseDownAction; usr.drawFunc= { var dead= List.new; physics.particles.do{|p, ...
-
... age.div(10).rand.do{|i| var q= physics.particles.choose; if(p!=q, { physics.makeSpring(p, q, 0.1.rand, 0.25.rand, 10.rand+10); }); }; }; usr.mouseMoveAction= usr.mouseDownAction; usr.drawFunc= { var dead= List.new; physics.particles.do{|p, ...
-
... .05, 0.05 ); c = d.createConstraint( "piston", a, d.world, [-0.1,0,0,0,0,1]); c.spring_( 0.001, 0.0001 ); a.force_( 0.1, 0.01, 0.001 ); c.force_( -0.01 ); // ===================================================================== // slide d.c ...
-
... Force viscosityForce contains containsLoc collide world loc vel accel mass size spring barycenter Inherited instance methods Examples Classes (extension) | Red > redUniverse'>redUniverse RedObject Extension fundamental object in the redUniv ...
-
... ) } } // wrappers for predefined ODEs Fb1_MSD : UGen { *new { |f = 0, mass = 1, spring = 1, dampen = 0, tMul = 1, t0 = 0, y0 = #[0, 0], intType = \sym2, compose, composeArIn, dt0, argList0, init_intType = \sym8, withDiffChannels = false, wi ...
-
... ut.pdf) ## changelog: * 241219 - added barycenter to RedObject * 240103 - added springs coupled example * 230914 - added one discrete world example, optimised RedWorld neighbours * 230912 - added RedOscillator and RedOscillator2 - thanks g. ...
-
... ~ps.makeParticle(1, x, y, 0); //create a particle at mouse location s= ~ps.makeSpring(p, mouse, diff.x*0.01, diff.y*0.01, delta); if(objects.size<500, { objects.add(( particle: p, spring: s, synth: Synth(\part, [\out, 40, \x, x, \y, y]), d ...
-
... ~ps.makeParticle(1, x, y, 0); //create a particle at mouse location s= ~ps.makeSpring(p, mouse, diff.x*0.01, diff.y*0.01, delta); if(objects.size<500, { objects.add(( particle: p, spring: s, synth: Synth(\part, [\out, 40, \x, x, \y, y]), d ...
-
... ; // this.dump; objectA.addConstraint( this ); objectB.addConstraint( this ); } spring_{ |a,b| //properties.put( 'response/spring', [a,b] ); this.set( "response/spring", [a,b]); } destroy{ |osc=true| if ( osc ){ dimple.addr.sendMsg( "/world ...