Particles direction problem
MarkOnTheIron
Member Posts: 1,447
I have an actor (a cannon) that when it fires produce some smoke. I have the particles set as I wanted and they function very well.
The problem comes when I place the cannon instances facing a different direction than the original prototype. In this case the particles go in the right direction but they start from the wrong position (the one i set in the prototype).
Is there a simple way to resolve this or I have to edit every instances of the cannon to change the emitter offset?
The problem comes when I place the cannon instances facing a different direction than the original prototype. In this case the particles go in the right direction but they start from the wrong position (the one i set in the prototype).
Is there a simple way to resolve this or I have to edit every instances of the cannon to change the emitter offset?
Comments
In the particle behavior in the velocity/position tab if you change the emitter offset values and then plan on use your actor facing different directions then you should use in the expression editor this:
- for X --> cos(self.rotation)*x (where x is the original value you inserted as X value)
- for Y --> sin(self.rotation)*x (where x is the original value you inserted as X value)
I can't believe I actually used a math expression successfully. GS is sure a great learning tool :-)