Flint Particle System Forum - Position Initializer Design Question Sat, 25 Dec 2010 18:10:46 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Position Initializer Design Question http://flintparticles.org/forum/comments.php?DiscussionID=292&Focus=1022#Comment_1022 http://flintparticles.org/forum/comments.php?DiscussionID=292&Focus=1022#Comment_1022 Wed, 23 Dec 2009 04:03:41 +0000 rhodson2
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 http://flintparticles.org/forum/comments.php?DiscussionID=292&Focus=1031#Comment_1031 Tue, 05 Jan 2010 14:17:07 +0000 Richard
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 ]]>