A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.unity3d.com/Manual/sprite/placeholder/../../class-WindZone.html below:

Manual: Animate trees with Wind Zones

Animate trees with Wind ZonesSwitch to Scripting

To create the effect of wind on your trees and particle systems, you can add one or more GameObjectsThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
with Wind Zone components. Trees within a wind zone bend in a realistic animated fashion, and the wind itself moves in pulses to create natural patterns of movement among the trees.

Wind for Terrain

To create a Wind Zone GameObject, from the main menu, select GameObject > 3D Object > Wind Zone.

Wind modes

There are two modes for wind:

The Main property determines the overall strength of the wind. Use Turbulence for randomised variation.

The wind blows over the trees in pulses to create a more natural effect, where the wind speed isn’t a constant but rather falls and rises with gusts. You can control the strength of the pulses with Pulse Magnitude, and the time interval between them with Pulse Frequency.

Tree-specific properties

Wind Zones work on an area of the terrain or an entire tile. However, different trees have different behaviors in the same wind conditions. Use the Tree Editor to control how the branches and leaves of each tree model react to wind.

You can’t control SpeedTree animation behavior in Unity; use SpeedTree to change wind animation and import your trees again.

Using multiple Wind Zones

You can use more than one Wind Zone GameObject in your terrain. This creates different wind conditions in different areas of the terrain. For example, you can create a strong wind in one area and a gentle breeze in another.

You can use a Directional mode on the whole terrain and a Spherical mode to create local conditions (these are added to the Directional wind), or use only Spherical mode winds that together cover the whole terrain. Don’t use multiple Directional mode winds; a Directional wind covers the entire terrain, so using two Directional winds doesn’t create local conditions.

Wind for particle systems

The main use of wind is to animate trees, but it can also affect particles in a particle system that uses the External Forces module. Refer to Particle SystemA component that simulates fluid entities such as liquids, clouds and flames by generating and animating large numbers of small 2D images in the scene. More info
See in Glossary
for more information.

To add a Wind Zone to an existing particle system:

  1. In the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
    See in Glossary
    window, select the particle system GameObject.
  2. From the main menu, select Component > Effects > Wind Zone.
Wind for SpeedTree trees

Trees from SpeedTree rely on their own wind behavior, which is imported with them. Refer to Games wind for more information.

Wind for grass

Wind Zones don’t apply to grass on the terrain. To animate grass, refer to Terrain Settings reference.

Additional resources

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4