Flint Particle System Forum - Dynamically move a gravity well?2011-12-11T06:11:23+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Dynamically move a gravity well?http://flintparticles.org/forum/comments.php?DiscussionID=359&Focus=1215#Comment_12152010-05-26T03:32:16+01:002011-12-11T06:11:23+00:00wormdiethttp://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_12162010-05-27T05:01:19+01:002011-12-11T06:11:23+00:00kakudafhttp://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_12192010-06-01T03:10:18+01:002011-12-11T06:11:23+00:00wormdiethttp://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.]]>