I have a ParticleEmitter to display fire from a torch. It is given a initial velocity in Z direction (which is ‘up’ in the game’s world). It’s attached to the torch which is then attached to a hand and so on up the tree.
My question is how do I ensure the initial velocity remains in the Z direction irrespective of rotation of parent node? If the character falls over or moves its arm the fire should still go up.
Do I need to add a control that looks for rotation in parents and cancels it in local coords? Or is there a way to specify the velocity in world coords?
One technique would be to attach it to the root rather than torch and have a control that tracks the torch’s location and moves the fire. Is that the right way to achieve this?