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?

jebus

11-12-2002, 03:48 AM

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.

jebus

kaysoft

11-12-2002, 05:23 AM

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