[SOLVED] Libgdx - Rotate The whole Particle Emitter

Hi Guys… Im making a particle emitter that should work as a “missile” , or so to speak…

But i just noticed that theres no method to setRotation / Set angle but

i found this :

“”

for (int i = 0; i < particleEffect.getEmitters().size; i++) { //get the list of emitters - things that emit particles
            particleEffect.getEmitters().get(i).getAngle().setLow(angle); //low is the minimum rotation
            particleEffect.getEmitters().get(i).getAngle().setHigh(angle); //high is the max rotation
         }

My question is… How do i rotate this properly? I dont get this setLow, setHigh?

Can anyone give me a tip?

Oh, that’s my tutorial isn’t it?
Basically, particle emitters emit particles in an angle. Low and high determine the maximum and minimum bounds of what angle a particle is emitted at. If you want just a straight beam of particles, just set the low/high angle the same; if you want particles to be emitted all around, set low to 0 and high to 360.

Hey Jimmt :stuck_out_tongue:

So if i want it to go to the Left <-------------::::
I just use Degrees º : 90º

set(90)

to both of them… Correct?

Thanks for the tutorial by the way :stuck_out_tongue:

90 degrees would be straight up, because we start from the positive x axis and then rotate counter clockwise. To the left would be 180º

Ah, got it.
Btw, why do they work like that? I mean… Isnt the common-sense to start 0º at the north?

In standard mathematics (trigonometry) you start from the positive x axis, and same with polar coordinates/equations.