- Home /
Question by
user-12416 (google) · May 07, 2011 at 11:02 AM ·
particleemitter
particle emitter when moving
hi, i am making a flight combat game, and i want a particle emitter to emit while my spaceship is moving. Is there any way to do that? thanx!
Comment
Answer by Matthew A · May 07, 2011 at 11:23 AM
Create a game object and add the relevant particle components. Make that game object a child of your spaceship (either in the hierarchy, or by setting the object's transform.parent to the spaceship transform in a script).
Then position the emitter where you want it relative to the spaceship (either in the scene, or by setting transform.localPosition / transform.localRotation).