- Home /
Particle Emitter from moving object to cursor location
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?
               Comment
              
 
               
              Answer by Arshia001 · Aug 10, 2011 at 08:23 AM
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?
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                