Flint Particle System Forum - Use gravity and rotation toghether? Sat, 25 Dec 2010 16:52:25 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Use gravity and rotation toghether? http://flintparticles.org/forum/comments.php?DiscussionID=190&Focus=735#Comment_735 http://flintparticles.org/forum/comments.php?DiscussionID=190&Focus=735#Comment_735 Tue, 17 Mar 2009 15:52:59 +0000 giraz First of all my compliments Richard - FLINTS looks very promising.

I've just started using FLINT so here is my dummy question:

Let's say I start from the snow example and I want to make it snow from a small could.
addInitializer(new Position(new LineZone(new Point(-50, 0), new Point(50, 0))));

then I rotate the emitter depending on the cloud rotation:
on enter frame: _emitter.rotation = _cloud.rotation;

How can I correctly apply the gravity and speed to the particles so that all the snowflakes will keep on going down after an initial movement in the direction of the emitter?


Also I was wondering, is it possible to change the color of the new particles from time to time without effecting the older ones already visible?

Thanks!


Cheers
Riccardo ]]>
Use gravity and rotation toghether? http://flintparticles.org/forum/comments.php?DiscussionID=190&Focus=736#Comment_736 http://flintparticles.org/forum/comments.php?DiscussionID=190&Focus=736#Comment_736 Thu, 19 Mar 2009 10:31:54 +0000 giraz
I was thinking of converting the fountain example in 2d and then see how close I can get adding the rotation ]]>
Use gravity and rotation toghether? http://flintparticles.org/forum/comments.php?DiscussionID=190&Focus=737#Comment_737 http://flintparticles.org/forum/comments.php?DiscussionID=190&Focus=737#Comment_737 Fri, 20 Mar 2009 07:49:49 +0000 Richard acceleration to the snow to make it turn to move downwards, and probably some drag to stop it going too fast. Add to that a ColorInit initializer to set the color. Changing the color property on this initializer will alter the color of new particles without affecting those already created. ]]>