Flint Particle System Forum - How do you rotate an emitter?2010-11-24T13:45:33+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
How do you rotate an emitter?http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=105#Comment_1052008-04-19T09:03:29+01:002008-05-20T10:07:00+01:00robotzhttp://flintparticles.org/forum/account.php?u=21
I must be missing something really obvious here, but I have poured through the documentation and can't find a way to rotate an emitter.
Say I have a steady() emitter running, I'd like to be able ...
Say I have a steady() emitter running, I'd like to be able to rotate it based on keypresses. There is a rotate method but that appears to keep the emitter rotating forever (i.e. it isn't under your control once set off)
Cheers,
Rich]]>
How do you rotate an emitter?http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=107#Comment_1072008-04-22T02:08:43+01:002010-11-24T13:45:33+00:00ericrhttp://flintparticles.org/forum/account.php?u=17
I believe you do this by rotating the Renderer object that you're using to display the emitter. Something like:
emitter.rotate(90); // Should rotate the Renderer (and thus the contained Emitter) ...
emitter.rotate(90); // Should rotate the Renderer (and thus the contained Emitter) 90 degrees.
See the DisplayObject documentation on the rotation property for more.
That work?]]>
How do you rotate an emitter?http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=108#Comment_1082008-04-22T19:47:44+01:002010-11-24T13:45:33+00:00robotzhttp://flintparticles.org/forum/account.php?u=21
Yeah I thought you were going to say this. The problem is that if your emitter is leaving a trail of particles as it moves, and you then rotate the renderer, the entire lot rotates. I've made a small ...
http://www.photonstorm.com/swfs/thrust.swf
Press space-bar to reset the ship if you fly off the edge (easy to do as I've not yet smoothed things out)
The trail should remain where it was emitted and not rotate with the renderer. But of course rotating the renderer will do exactly this, so I understand fully WHY it is doing it, just not how to avoid it.
Cheers,
Rich]]>
How do you rotate an emitter?http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=109#Comment_1092008-04-22T23:08:09+01:002010-11-24T13:45:33+00:00pyiaphttp://flintparticles.org/forum/account.php?u=19
This doesn't solve the direct problem, but as an alternative you can adjust the output direction of the emitter. But intuitively rotating the emitter shouldn't rotate the particles drawn along with ...
How do you rotate an emitter?http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=110#Comment_1102008-04-23T01:19:53+01:002010-11-24T13:45:33+00:00robotzhttp://flintparticles.org/forum/account.php?u=21
How do you change the output direction of the emitter? I only saw methods that would change the rotation of the particles themselves.
Right now I'm thinking if this isn't possible I'll have to ...
Right now I'm thinking if this isn't possible I'll have to take the "RotateEmitter" class and tweak it for this specific purpose.
Seems highly strange Flint can't do it natively. Am still hoping I'm just missing something obvious ...]]>
How do you rotate an emitter?http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=111#Comment_1112008-04-23T06:56:59+01:002008-04-23T07:47:34+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
Hi, sorry to join you late
You rotate the emitter with
emitter.rotation = 90;
This doesn't move the renderer, and hence doesn't move any existing particles.
See the docs for more ...
You rotate the emitter with
emitter.rotation = 90;
This doesn't move the renderer, and hence doesn't move any existing particles.