-
... ont; world= RedWorld3(RedVector[width], nil, 10, 0); //dim,grav,maxvel,damp //--objects { var loc= RedVector[width].rand; var vel= RedVector[1]; var mass= 0.5.rrand(4); var obj= RedBoid(world, loc, vel, 0, mass, mass*5) .maxForce_(1).wdista ...
-
... on SoftSet is intended for letting a controller set a numerical parameter of an object politely. The common problem is that when a controller is newly assigned to a process parameter, the physical position can differ widely from the current ...
-
... r| KeyPlayer(char.asSymbol) }; // put one in - also by clicking on its button g.object_(KeyPlayer(\f)); // put same one in listview - can be switched here by selecting // its name in the listview and typing Return key. h.object_(g.object); ...
-
... dWorld1(RedVector2D[width, height], wgrav, 30, 0.8); //dim,grav,maxvel,damp //--objects trg= RedObject(world, RedVector2D[width*0.5, height*0.5]); objs= { var mass= 2.0.rand+1; RedObject(world, RedVector2D[width.rand, height.rand], RedVecto ...
-
... s Classes | Collections > Unordered'>Unordered IdentitySet : Set : Collection : Object a set according to identity Source: Set.sc Subclasses: OrderedIdentitySet See also: List , Dictionary Description An IdentitySet is a collection of objec ...
-
... Sieves and Psieve patterns . Class Methods . newEmpty Creates a new empty Sieve object. . new Creates a new Sieve object in mode 'points'. Arguments: gen A generator. Allowed generators: Integers, Streams or Patterns producing intervals or ...
-
... Pairs Classes | Core DoesNotUnderstandError : MethodError : Error : Exception : Object Error thrown when calling an unknown method name Source: Error.sc Subclasses: BinaryOpFailureError See also: Error Description This error is typically ge ...
-
... Collections > Unordered'>Unordered MultiLevelIdentityDictionary : Collection : Object tree of dictionaries Source: Library.sc Subclasses: LibraryBase See also: IdentityDictionary Description A tree of IdentityDictionaries. Addresses within ...
-
... dWorld3(RedVector2D[width, height], wgrav, 15, 0.5); //dim,grav,maxvel,damp //--objects objs= { var loc= RedVector2D[250, 10].rand; //initial xy location var vel= RedVector2D[3.5, 0].rand; //initial velocity var acc= RedVector2D[0, 0]; //in ...
-
... RedWorld(RedVector2D[width, height], wgrav, 5, 0.8); //dim,grav,maxvel,damp //--objects {|i| var loc= RedVector2D[width/n*i, height*0.5]; RedObject(world, loc, nil, nil, 10, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ thet ...