Particle system problem

In my particle system that I made, I added rotation of the emitter. The emitter rotates correctly, but the gravity isn’t correct. For example, at rotation Vec3(0,0,0) (normal) the gravity pulls the particles down the Y axis, correct. But when I rotate the emitter, lets say 45 degrees on the Z axis, the gravity isn’t pulling them to the Y axis anymore, but Z and Y axis. Any ideas how to fix this?

it sounds like when you rotate your emitter, you’re rotating your entire coordinate system. try pushing and popping the matrix around that rotate call.


Nevermind, I changed my system according to the Particle Simulator program, it works great now!

But, yes, your solution was part of the whole. Thanks