Flint Particle System Forum - Position Initializer Design Question 2010-12-26T20:31:21+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Position Initializer Design Question http://flintparticles.org/forum/comments.php?DiscussionID=292&Focus=1022#Comment_1022 2009-12-23T04:03:41+00:00 2010-12-26T20:31:21+00:00 rhodson2 http://flintparticles.org/forum/account.php?u=288 Richard (or anyone else who would like to speculate), I'm doing some advanced work with Flint and I was having a problem with the Position initializer. When I tried to initialize a particle with ...
I'm doing some advanced work with Flint and I was having a problem with the Position initializer. When I tried to initialize a particle with two different Position initializers in sequence (similar to the LogoTween example), the position of the particle was getting thrown off. After digging through the source code, I found out that you added the parameters in the Position initializer to the particle, instead of just setting the absolute coordinates of the particle. I was wondering what the reason behind this was, and if there would be any repercussions if I changed this behavior.

Thanks,
Ryan]]>
Position Initializer Design Question http://flintparticles.org/forum/comments.php?DiscussionID=292&Focus=1031#Comment_1031 2010-01-05T14:17:07+00:00 2010-01-05T14:17:52+00:00 Richard http://flintparticles.org/forum/account.php?u=1 Hi Ryan I add the position coordinates because the Position initializer sets the position relative to the emitter. When the emitter creates the particle, it sets the position to the emitter's ...
I add the position coordinates because the Position initializer sets the position relative to the emitter. When the emitter creates the particle, it sets the position to the emitter's position. The Position initializer then adds a value to that to offset the particle from the emitter.

If you want absolute positioning, use the PositionAbsolute initializer.

Richard]]>