How to make particles move and rotate with an actor?

SondreSondre Member Posts: 1
edited February 2012 in Working with GS (Mac)
I have a car with a smoke effect from the engine pipes. I used a particle behavior, and it works great when my car drive forward, but the problem is when the car rotate. When the car rotates the smoke gets out of its position instead of following the car. Can anyone help please?


Comments

  • T8TRG8TRT8TRG8TR Member Posts: 120
    Could you make an attribute so when the car rotates the direction the particles are being spawned in changes as well?
  • CloudsClouds Member Posts: 1,599
    Catalytic converter ?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited February 2012
    30*cos(self.rotation) and 30*sin(self.rotation) in the x and y emiiter offset in the particle behavior
  • arcticsunrisearcticsunrise Member Posts: 159
    is your smoke emitter not constrained to the car actor

    when your car rotates you can read its self.rotation value and then setup some rules in the smoke emitter to make it rotate

    thats a starting hint for you :-)
  • arcticsunrisearcticsunrise Member Posts: 159
    ah john you beat me to it with the answer
  • SondreSondre Member Posts: 1
    Wonderful. Thanks a lot guys, I seem to be on the right path now.
  • sirbullsirbull Member Posts: 4
    But how is it then possible to offset the particles from the actor?
  • ORBZORBZ Member Posts: 1,304
    @sirbull

    X: cos(self.rotation)*offsetDistance
    Y: sin(self.rotation)*offsetDistance
  • barleyesqbarleyesq Member Posts: 72

    Hey guys! Any idea how to get this to work when the actor is rectangular (not square)? Or if the actor is square but the visible image isn't centred in the actor (the actor is not symmetrical)?

Sign In or Register to comment.