Flint Particle System Forum - Particles of away3d primitive2011-12-13T02:09:41+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Particles of away3d primitivehttp://flintparticles.org/forum/comments.php?DiscussionID=484&Focus=1635#Comment_16352011-05-07T12:16:52+01:002011-12-13T02:09:41+00:00jack1505http://flintparticles.org/forum/account.php?u=485
When the renderer is Away3DRenderer, the flint particle system does work with addInitializer and addAction functions (the particles are initialized by addInitializer, for example, addInitializer( new ...
renderer = new Away3DRenderer( scene ); ......
var ExplosionEmitter:Emitter3D = new Emitter3D();
var particles:Vector.<Particle> = createSphereParticles(); ExplosionEmitter.addParticles( particles, false );
ExplosionEmitter.addInitializer( new Velocity( new SphereZone( new Vector3D(), 200 ) ) ); ExplosionEmitter.addInitializer( new Lifetime( 3 ) );
ExplosionEmitter.addAction( new Age( Quadratic.easeIn ) ); ExplosionEmitter.addAction( new Move() ); ExplosionEmitter.addAction( new Accelerate( new Vector3D( 0, -50, 0 ) ) );
public function createSphereParticles():Vector.<Particle> { var particles:Vector.<Particle> = new Vector.<Particle>(); var p:Particle3D; var i:int; var sphere:Sphere;
for(i=0;i<100;i++) { p=new Particle3D(); p.position= new Vector3D(0,50,0 ,0);
} return particles; }]]>
Particles of away3d primitivehttp://flintparticles.org/forum/comments.php?DiscussionID=484&Focus=1638#Comment_16382011-05-09T08:39:18+01:002011-12-13T02:09:41+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
I replied to this in the original thread - http://flintparticles.org/forum/comments.php?DiscussionID=474
http://flintparticles.org/forum/comments.php?DiscussionID=474]]>