Flint Particle System Forum - Column of light2011-12-11T23:46:48+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Column of lighthttp://flintparticles.org/forum/comments.php?DiscussionID=429&Focus=1460#Comment_14602010-12-08T10:35:31+00:002010-12-20T07:47:32+00:00Miroku_87http://flintparticles.org/forum/account.php?u=440
Hi everyone,
I would like to make a 3D column of light with squared base.
I began editing the FireSmoke example and since I want just the outline of the squared base to emit particle I have started ...
I would like to make a 3D column of light with squared base. I began editing the FireSmoke example and since I want just the outline of the squared base to emit particle I have started doing this:
var fire:Emitter3D = new Emitter3D(); fire.counter = new Steady( 60 );
fire.addInitializer( new Lifetime( 2, 3 ) ); var multiZ:MultiZone = new MultiZone(); var yy:Number = 0; multiZ.addZone(new LineZone(new Point3D(-50,yy,-50), new Point3D(50,yy,-50))); multiZ.addZone(new LineZone(new Point3D(50,yy,-50), new Point3D(50,yy,50))); multiZ.addZone(new LineZone(new Point3D(50,yy,50), new Point3D(-50,yy,50))); multiZ.addZone(new LineZone(new Point3D(-50,yy,50), new Point3D(-50,yy,-50)));
var multiZ2:MultiZone = new MultiZone(); yy = 10; multiZ2.addZone(new LineZone(new Point3D(-50,yy,-50), new Point3D(50,yy,-50))); multiZ2.addZone(new LineZone(new Point3D(50,yy,-50), new Point3D(50,yy,50))); multiZ2.addZone(new LineZone(new Point3D(50,yy,50), new Point3D(-50,yy,50))); multiZ2.addZone(new LineZone(new Point3D(-50,yy,50), new Point3D(-50,yy,-50)));
fire.addInitializer( new Velocity( multiZ ) ); fire.addInitializer( new Position( multiZ2 ) ); fire.addInitializer( new SharedImage( new FireBlob() ) );
fire.addAction( new Age( ) ); fire.addAction( new Move( ) ); fire.addAction( new LinearDrag( 1 ) ); fire.addAction( new Accelerate( new Vector3D( 0, 40, 0 ) ) ); fire.addAction( new ColorChange( 0xFFFFCC00, 0x00CC0000 ) ); fire.addAction( new ScaleImage( 1, 1.5 ) ); fire.addAction( new RotateToDirection() );
fire.start( );
Now my problem is this: I want light particles to move just on Y axis with no other movement on the other axis. How do I do this?
Thank you in advance =)]]>
Column of lighthttp://flintparticles.org/forum/comments.php?DiscussionID=429&Focus=1465#Comment_14652010-12-10T16:55:27+00:002011-12-11T23:46:48+00:00Miroku_87http://flintparticles.org/forum/account.php?u=440
No one?
Column of lighthttp://flintparticles.org/forum/comments.php?DiscussionID=429&Focus=1485#Comment_14852010-12-20T07:51:38+00:002011-12-11T23:46:48+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
If you want them to only move on the Y axis, you need to set a velocity that only has a Y component. The easiest way to do that is with a PointZone.
fire.addInitializer( new Velocity( new ...
fire.addInitializer( new Velocity( new PointZone( new Point3D( 0, -10, 0 ) ) ) );]]>
Column of lighthttp://flintparticles.org/forum/comments.php?DiscussionID=429&Focus=1490#Comment_14902010-12-22T17:45:58+00:002011-12-11T23:46:48+00:00Miroku_87http://flintparticles.org/forum/account.php?u=440
In this way I can't have a rectangular base =\
Column of lighthttp://flintparticles.org/forum/comments.php?DiscussionID=429&Focus=1491#Comment_14912010-12-22T17:51:22+00:002011-12-11T23:46:48+00:00Miroku_87http://flintparticles.org/forum/account.php?u=440
Oops.... I was wrong!
THANK YOU VERY MUCH ;)
THANK YOU VERY MUCH ;)]]>