- Home /
Where to put Particle Emitter?
I want to create a tank that fires at objects; the tank has a Muzzle-flash particle emitter, and I have an Explosion particle emitter that will appear where the tank round hits the objects. My testing seems to work OK, except for a small problem with the location of the Explosion in the hierarchy.
At first I put the Explosion as a child of the turret, but this led to the problem that although the Explosion starts off in the right place, it moves as the turret rotates, which I belatedly realised was the expected behaviour of a child object. So it looks weird because the base of the explosion moves as the particles decay.
Since the tank will fire and move, I can't put the Explosion as a child of the tank. But to prevent the explosion moving, it seems I need either to place the Explosion somewhere in the scene or make it a child of a non-moving object. Of course I can do that, but it seems like a clumsy solution. Is there a better way of doing this?
Your answer
Follow this Question
Related Questions
Make a simple tree 1 Answer
How do I set a child object to not rotate if the parent WILL be rotating? 1 Answer
Child Gameobjects are not fixed to the parent when using physics 0 Answers
How can I make a game object follow an instantiated game object? 1 Answer
Freeze specific rotation axis of a child 2 Answers