Flint Particle System Forum - move() action not working on disczone velocity 2011-12-13T06:02:54+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher move() action not working on disczone velocity http://flintparticles.org/forum/comments.php?DiscussionID=325&Focus=1121#Comment_1121 2010-02-15T05:01:40+00:00 2011-12-13T06:02:54+00:00 slickthug http://flintparticles.org/forum/account.php?u=331 Hi, 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 ... 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 2010-03-30T08:58:41+01:00 2010-03-30T08:59:28+01:00 Richard http://flintparticles.org/forum/account.php?u=1 Hi 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 ...
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]]>