Wind zone affects the entire scene in one direction.
// Creates a Directional Wind Zone that blows wind up.
function Start() { var wind : WindZone = gameObject.AddComponent.<WindZone>(); wind.mode = WindZoneMode.Directional; transform.rotation = Quaternion.LookRotation(Vector3.up); }
// Creates a Directional Wind Zone that blows wind up. using UnityEngine;
public class ExampleScript : MonoBehaviour { void Start() { var wind = gameObject.AddComponent<WindZone>(); wind.mode = WindZoneMode.Directional; transform.rotation = Quaternion.LookRotation(Vector3.up); } }
Did you find this page useful? Please give it a rating: