How do I set the initial velocity of a ParticleEmitter?
Hi all,
I would like to do something like this:
ParticleSystem part = GetComponent<ParticleSystem>();
part.velocityOverLifetime = owner.GetComponent<Rigidbody>().velocity;
Unfortunately, velocityOverLifetime is a protected variable and I cannot modify it from a script.
Basically, what I am trying to do is have all particles from my newly-spawned object travel in a certain direction. The direction never changes after the emitter is spawned.
How can I modify velocity of all particles spawned from a ParticleEmitter?
Your answer
Follow this Question
Related Questions
Can someone please help me find out what wrong with my code. 1 Answer
How can i disable/enable slowly the blur effect using the blur script ? 0 Answers
How Create a menu in script and inspector ?? 2 Answers
How can I give each instance a enum mode from another script ? 0 Answers
Unity freeze when open script,I keep trying to open a script, but it freezes Unity. Please help. 1 Answer