ParticleEmitter.rndVelocity 随机速度

var useWorldSpace : bool

Description描述

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

一个沿着X,Y和Z轴的随机的速度,它被添加到当前的速度。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		particleEmitter.rndVelocity = new Vector3(2, 0.1F, 2);
	}
}
// Spread random velocity mainly along x-z axis
// 主要沿着x-z轴方向传播随机速度

particleEmitter.rndVelocity = Vector3(2, 0.1, 2);
Page last updated: 2011-1-23