Flint Particle System Forum - How do i make particles orbit in a circular motion? Sun, 26 Dec 2010 16:18:42 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher How do i make particles orbit in a circular motion? http://flintparticles.org/forum/comments.php?DiscussionID=186&Focus=725#Comment_725 http://flintparticles.org/forum/comments.php?DiscussionID=186&Focus=725#Comment_725 Mon, 09 Mar 2009 13:52:49 +0000 Clark
Thanks Richard for this excellent library!

I have a situation where i want to spawn a few particles at the outside edges of the stage. I want these partciles to be pulled towards the centre.

Consider you creating a 100px by 100px circle sprite and centering it on stage. Id like the particles to be drawn to and orbit around the circle perimiter.

Not sure if this is possible? I tried using a gravity well but the motion is fairly chaotic in my attempts.

Also on top of this, Id like my particles to change colors. I also noticed i think ColorChange but this seems to take 2 colours. I am looking to use 7 colours. Is this fairly easy to implement?

One last thing! I have been scared of 3d for some time now and notice you have 3d support. Really impressive! Can you recommend a good source which would get me started with papervision/general 3d AS3?

Thanks everyone. ]]>
How do i make particles orbit in a circular motion? http://flintparticles.org/forum/comments.php?DiscussionID=186&Focus=732#Comment_732 http://flintparticles.org/forum/comments.php?DiscussionID=186&Focus=732#Comment_732 Mon, 16 Mar 2009 08:57:44 +0000 Richard
You could try using the gravity well but adding another action to stop the particles getting too close - maybe an anti-gravity with a small effective distance. But for the best effect you probably need to create a custom action. One day I should write a tutorial on creating custom actions, but in the meantime look at the source code of some of the existing actions - the structure's very simple. In may cases your action jsut needs two methods - the constructor and the update method.

The same is true of the color change that you need. A custom action would be perfect. Look at the code for the existing ColorChange action for guidance.

For 3D, there's lots of tutorials online, but unfortunately I don't know them well enough to guide you to the best. Alternatively, if you get a chance to go to a short course by the dev team of one of the engines - it doesn't really matter which one for now, you just need to get your feet wet - then grab it. ]]>