Unity 6.3
0 онлайн 65 гостей 3 в системе
Вход

WindZoneMode.Directional

Описание

Зона ветра влияет на всю Scene в одном направлении.

// 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); } }