|
I'm pretty new to Unity and found I couldn't make the particle effect I was going for (using a particle emitter component) without random local velocity. My first thought was to make a script adding values which would translate to world values then be added to the existing rndVelocity options. I can't figure out how to do it though. This is what I tried:
(comments are locked)
|
|
I don't understand what you're trying to do, but anyway, the variable called
(comments are locked)
|
|
do you need to add positive and negative velocity? If so, use Random.Range(min, max) randomAdd = Vector3(Random.Range(-rndLocalVelX, rndLocalVelX), Random.Range(-rndLocalVelY, rndLocalVelY), Random.Range(-rndLocalVelZ, rndLocalVelZ)); you would set this as Velocity instead of rndVelocity ofcourse
(comments are locked)
|
