Flint Particle System Forum - Ask for each new particle set random velocity Sat, 26 May 2012 06:19:59 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Ask for each new particle set random velocity http://flintparticles.org/forum/comments.php?DiscussionID=541&Focus=1798#Comment_1798 http://flintparticles.org/forum/comments.php?DiscussionID=541&Focus=1798#Comment_1798 Sun, 11 Dec 2011 06:54:51 +0000 striker The question arose as to ask for each new particle set random velocity, for example to obtain cloud-drift?
http://www.kongregate.com/games/Smrdis/collapse-it?acomplete=collapse+it (on game level)
Each new cloud has a different velocity and overtaking each other.

Flint v. 2.2.1 released (flash player 9) ]]>
Ask for each new particle set random velocity http://flintparticles.org/forum/comments.php?DiscussionID=541&Focus=1807#Comment_1807 http://flintparticles.org/forum/comments.php?DiscussionID=541&Focus=1807#Comment_1807 Wed, 14 Dec 2011 20:17:57 +0000 Richard Velocity initializer uses a zone, which is passed to the constructor, to define the initial velocity of the particle. The zone defines a region in 2d or 3d space. For example a circle or a rectangle. When Flint sets the velocity of the particle it picks a random point within that space and uses the vector from the origin to that point as the velocity for the particle. So yes, Flint can and does do random velocities. The only way not to get a random velocity is to use a PointZone with the Velocity initializer.

A few of the examples use zones to set random velocities within controlled parameters, like sparkler, fire & smoke, and the most extreme example logo firework, which uses a picture to define the initial velocity and thus force the particles to create the logo image as they spread out. ]]>