[LibGDX] Rotation of particle emitter

I’m wondering how I can rotate a particle emitter around an origin. At the moment I’m using this code to rotate the particle emitters:


Array<ParticleEmitter> emitters = p.getEmitters();
for (int i = 0; i < emitters.size; i++) {
	ScaledNumericValue emitterAngle = emitters.get(i).getAngle();
	emitterAngle.setLow(emitterAngle.getLowMin() + angle);
	emitterAngle.setHighMin(emitterAngle.getHighMin() + angle);
	emitterAngle.setHighMax(emitterAngle.getHighMax() + angle);
}

This works fine except I want to rotate the particle emitter around the origin of my sprite. This is my result otherwise which isn’t desired.

http://img34.imageshack.us/img34/2572/vssb.png

[Disclaimer] never used libGDX [/Disclaimer]

you have to move the emitter around the center of the plane according to the angle

Pseudo Code


       emmiter.setX( plane.getCenterX() + Math.cos(angle) * plane. getWidth() / 2);
       emmiter.setY( plane.getCenterY() + Math.sin(angle) * plane.getHeight() / 2);

if the texture is vertical like it is in the first picture then set the initial angle as 3*pi / 2 or 270 degrees