|
The emitter is currently attached to a parent and it emits while the left mouse button or space bar are pressed down. I would like to emit the particles towards the mouse/cursor location on screen; however, at the moment, the particles move straight up vertically. How can I aim the particles towards the cursor dynamically?
(comments are locked)
|
|
There's an initial velocity property in the particle emitter. Set it to point towards the mouse cursor's position in your script. I'm pretty new to Unity and my Javascript knowledge is a bit flaky. Could you please include a snippet of code that would accomplish this?
Aug 10 '11 at 08:27 AM
GTHaxor
(comments are locked)
|
