Flint Particle System Forum - Dynamically move a gravity well? Sun, 11 Dec 2011 05:47:51 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Dynamically move a gravity well? http://flintparticles.org/forum/comments.php?DiscussionID=359&Focus=1215#Comment_1215 http://flintparticles.org/forum/comments.php?DiscussionID=359&Focus=1215#Comment_1215 Wed, 26 May 2010 03:32:16 +0100 wormdiet
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 http://flintparticles.org/forum/comments.php?DiscussionID=359&Focus=1216#Comment_1216 Thu, 27 May 2010 05:01:19 +0100 kakudaf 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 http://flintparticles.org/forum/comments.php?DiscussionID=359&Focus=1219#Comment_1219 Tue, 01 Jun 2010 03:10:18 +0100 wormdiet
I got some help by looking at some of the samples. ]]>