Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorrhodson2
- CommentTimeDec 23rd 2009
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 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 -
- CommentAuthorRichard
- CommentTimeJan 5th 2010 edited
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 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
1 to 2 of 2
