ParticleEmitter.rndVelocity Manual     Reference     Scripting  
Scripting > Runtime Classes > ParticleEmitter
ParticleEmitter.rndVelocity

var rndVelocity : Vector3

Description

A random speed along X, Y, and Z that is added to the velocity.

JavaScripts
// Spread random velocity mainly along x-z axis

particleEmitter.rndVelocity = Vector3(2, 0.1, 2);

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
particleEmitter.rndVelocity = new Vector3(2, 0.1F, 2);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
particleEmitter.rndVelocity = Vector3(2, 0.1F, 2)