Flint Particle System Forum - particles at specific distance 2011-12-11T09:48:35+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher particles at specific distance http://flintparticles.org/forum/comments.php?DiscussionID=460&Focus=1557#Comment_1557 2011-02-20T19:07:54+00:00 2011-12-11T09:48:35+00:00 mnu7 http://flintparticles.org/forum/account.php?u=471 how can I generate particles at certain gap. As In snowfall example particles are created randomly emitter.addInitializer( new Position( new LineZone( new Point( -5, -5 ), new Point( 505, -5 ) ) ) ... As In snowfall example particles are created randomly
emitter.addInitializer( new Position( new LineZone( new Point( -5, -5 ), new Point( 505, -5 ) ) ) );

But how to control these particles so that they generate at specific distance from each other in a a proper fashion.
Please suggest]]>
particles at specific distance http://flintparticles.org/forum/comments.php?DiscussionID=460&Focus=1564#Comment_1564 2011-02-27T13:08:20+00:00 2011-12-11T09:48:35+00:00 Richard http://flintparticles.org/forum/account.php?u=1 Setting the start position for each particle is something any initializer can do. Flint doesn't include a specific grid position initializer, but it's very simple to do. A custom initializer to set ...
package
{
import org.flintparticles.common.emitters.Emitter;
import org.flintparticles.common.initializers.InitializerBase;
import org.flintparticles.common.particles.Particle;
import org.flintparticles.twoD.particles.Particle2D;

public class CustomPosition extends InitializerBase
{
override public function initialize( emitter : Emitter, particle : Particle ) : void
{
var p:Particle2D = Particle2D( particle );
p.x = ...; // set the particle's x position
p.y = ...; // set the particle's y position
}
}
}
]]>