Flint Particle System Forum - Dynamically move a gravity well? 2011-12-11T06:11:23+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Dynamically move a gravity well? http://flintparticles.org/forum/comments.php?DiscussionID=359&Focus=1215#Comment_1215 2010-05-26T03:32:16+01:00 2011-12-11T06:11:23+00:00 wormdiet http://flintparticles.org/forum/account.php?u=373 First of all, this system is great! Question: how do I move a gravity well around by responding to dynamic events other than a mouse clip? In other words, I want to be able to feed a gravity ...
Question: how do I move a gravity well around by responding to dynamic events other than a mouse clip?

In other words, I want to be able to feed a gravity well x & y coordinates based on (non-mouse) user input.

These are the gravity wells I'm talking about, lifted and tweaked from the examples:

mitter.addAction( new GravityWell( 40, 200, 200 ) );
emitter.addAction( new GravityWell( 40, 75, 75 ) );
emitter.addAction( new GravityWell( -50, 325, 325 ) );
emitter.addAction( new GravityWell( -40, 75, 325 ) );
emitter.addAction( new GravityWell( -40, 325, 75 ) );

Thanks!]]>
Dynamically move a gravity well? http://flintparticles.org/forum/comments.php?DiscussionID=359&Focus=1216#Comment_1216 2010-05-27T05:01:19+01:00 2011-12-11T06:11:23+00:00 kakudaf http://flintparticles.org/forum/account.php?u=371 var g_w:GravityWell = new GravityWell( 40, 200, 200 ); emitter.addAction( g_w ); //change x & y g_w.x = new_x; g_w.y = new_y; emitter.addAction( g_w );
//change x & y
g_w.x = new_x;
g_w.y = new_y;]]>
Dynamically move a gravity well? http://flintparticles.org/forum/comments.php?DiscussionID=359&Focus=1219#Comment_1219 2010-06-01T03:10:18+01:00 2011-12-11T06:11:23+00:00 wormdiet http://flintparticles.org/forum/account.php?u=373 Thanks! I got some help by looking at some of the samples.
I got some help by looking at some of the samples.]]>