Flint Particle System Forum - move() action not working on disczone velocity Tue, 13 Dec 2011 06:27:29 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher move() action not working on disczone velocity http://flintparticles.org/forum/comments.php?DiscussionID=325&Focus=1121#Comment_1121 http://flintparticles.org/forum/comments.php?DiscussionID=325&Focus=1121#Comment_1121 Mon, 15 Feb 2010 05:01:40 +0000 slickthug Ive been trying to get particles to move from one disc to another but all they do is move up on y-axis.
Here is the code i tried to get them to go via xaxis but still goes on y axis.

emitter.addInitializer( new Position( new DiscZone(new Point3D(0,0,0),new Vector3D(1,0,0),10,8)));
emitter.addInitializer( new Velocity(new DiscZone(new Point3D(-100,100,0),new Vector3D(1,0,0),10,8)));
emitter.addAction(new Move()); ]]>
move() action not working on disczone velocity http://flintparticles.org/forum/comments.php?DiscussionID=325&Focus=1154#Comment_1154 http://flintparticles.org/forum/comments.php?DiscussionID=325&Focus=1154#Comment_1154 Tue, 30 Mar 2010 08:58:41 +0100 Richard
Sorry for the delay in responding - lots of work plus speaking at 360Flex and going on holiday means I haven't been around for a while.

If you want to move from one DiscZone to another, you don't want a DiscZone velocity. One of these two is likely to be the solution you're after...

emitter.addInitializer( new Position( new DiscZone(new Point3D(0,0,0),new Vector3D(1,0,0),10,8)));
emitter.addInitializer( new Velocity(new PointZone(new Point3D(-100,100,0))));
emitter.addAction(new Move());



emitter.addInitializer( new Position( new DiscZone(new Point3D(0,0,0),new Vector3D(1,0,0),10,8)));
emitter.addAction( new TweenToZone( new DiscZone(new Point3D(-100,100,0),new Vector3D(1,0,0),10,8)));
emitter.addAction(new Move());


I hope this isn't too late to be useful.
Richard ]]>