- Home /
Emit particules facing random direction
Hey,
I looked over the Internet and Unity answer without finding anything that would fit my needs so Im asking a new question.
I want to set up some particles which would be spawned from an object, and go into random directions. My problem is that my particle has to be rotated accordingly to the direction it follows. I don't know how to set this up.
A good example of what I want to do would be water splashes. Splashed have wave forms, and goes into different direction from a center origin.
Anything that could help would be much appreciated, thank you
Answer by HunterKrech · Mar 04, 2013 at 10:28 PM
Create a new particle system, and under force check the box "Randomize".
var particlz : ParticleSystem;
if(Input.GetButtonDown("Fire1"))
{
Particlz.ParticleSystem.Play;
}
In JS this should create particles while mouse is clicked if you drag the script to camera and drag particle system to particlz in editor.
Your answer
![](https://koobas.hobune.stream/wayback/20220613093822im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Create Legacy Ellipsoid Emitter from script 0 Answers
Unity did not save my particle effects properly, they are now empty prefabs. 2 Answers
Making ice/glass shatter without thousands of tiny cubes!(probably particle effect) 2 Answers
Problem using point.Length in a particle system c# 2 Answers
How do I pull particles towards the player? (Javascript) 0 Answers