Particle Help

bluebyu25bluebyu25 Member Posts: 500
edited November -1 in Working with GS (Mac)
hey guys searched the forum as im sure this has been answered but couldnt find it.

I have a rocket with a particle effect. On the emitter offset I have -38 so it comes out of the bottom perfectly. TH eproblem is when the rocket turns upside down or to the side, the particles are still on the bottom of the actor, not relative to the actors orientation, which is what I need. Thanks.

Comments

  • ShaneS429ShaneS429 Member Posts: 77
    First thing that comes to mind is to check the Velocity/Position tab of the Particles behavior and make sure Relative to: is set to Actor and not Scene
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    youll need to use sin and cos to keep the paricles right no matter of rotation and direction

    try this

    in the emiiter for the x position have

    -13*cos(self.Rotation)

    and in the emiiter for the y position have

    -13*sin(self.Rotation)

    cheers
  • DreamLabDreamLab Member Posts: 2,127
    JohnPapiomitis said:
    youll need to use sin and cos to keep the paricles right no matter of rotation and direction

    try this

    in the emiiter for the x position have

    -13*cos(self.Rotation)

    and in the emiiter for the y position have

    -13*sin(self.Rotation)

    cheers

    bro your a genius.
  • bluebyu25bluebyu25 Member Posts: 500
    Thanks John, that did it.
  • bluebyu25bluebyu25 Member Posts: 500
    Well.....almost. It worked fine for a little rotation but a lot of it and its still not centered. Hmmm.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    then you just adjust the numbers.

    change -13 to something lower like -30 ect.

    If that makes it worse change it up like -10, -5, 0, , or 10 ect
  • bluebyu25bluebyu25 Member Posts: 500
    Just to clarify I have

    x amount*cos(self.rotation) in the X value

    and

    x amount*sin(self.rotation) in the Y value

    Is that correct? And from there just adjust the numbers?
Sign In or Register to comment.