Legacy Documentation: Version 5.2
Grass and Other Details
Terrain Settings

Wind Zones

You can create the effect of wind on your terrain by adding one or more objects with Wind Zone components. Trees within a wind zone will bend in a realistic animated fashion and the wind itself will move in pulses to create natural patterns of movement among the tree.

Using Wind Zones

A wind zone object can be created directly (menu: GameObject > Create General > Wind Zone) or you can add the component to any suitable object already in the scene (menu: Component > Miscellaneous > Wind Zone). The inspector for the wind zone has a number of options to control its behaviour.

Wind Zone inspector
Wind Zone inspector

The Mode can be set to Directional or Spherical. In Directional mode, the wind will affect the whole terrain at once while a Spherical wind blows outwards within a sphere defined by the Radius property. Directional winds are more useful for creating natural movement of the trees while spherical winds are more suitable for special effects like explosions.

The Wind Main property determines the overall strength of the wind but this can be given a little random variation using Wind Turbulence. As mentioned above, the wind blows over the trees in pulses to create a more natural effect. The strength of the pulses and the time interval between them can be controlled using the Wind Pulse Magnitude and Wind Pulse Frequency properties.

Particle Systems

The main use of wind is to animate trees but it can also affect particles generated by a particle system using the External Forces module. See the reference page for Particle Systems for further details.

Grass and Other Details
Terrain Settings
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961