Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorevo
- CommentTimeMar 6th 2012
Hey again, I'm having an issue using the twoD Rotation initializer. What I'd like to happen is for each new particle created in this emitter to have a random rotation (which is what I assume this initializer is for)... what's happening is the particle appears in a seemingly random part of the emitter instead. Could someone show me an example of how the code for this sort of rotation should look? -
- CommentAuthorczyky
- CommentTimeMar 26th 2012
It looks like there are Rotation calls in the ExplodingImage 2D demo. Have you tried that? It might do what you are looking for. -
- CommentAuthorRichard
- CommentTimeApr 16th 2012
emitter.addInitializer( new Rotation( 0, 2 * Math.PI ) );
The two parameters are the maximum and minimum rotation of the particles, in radians. A random number between these values will be chosen for each particle. -
- CommentAuthorAntoine
- CommentTimeApr 17th 2012
While we are rotating...is it possible to set the rotationX/rotationY/rotationZ of 2D particles? Or would I need to implement 3D particles to achieve this? -
- CommentAuthorRichard
- CommentTimeApr 19th 2012
Hi Antoine
That's not implemented in the set of initializers included with Flint, but you could create a custom initializer to do it - it would be quite simple, similar to the Rotation initializer but with two more axes.
1 to 5 of 5
