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.