Wind Zones add realism to the trees you create by making them wave their branches and leaves as if blown by the wind.
风区添加到你创建真实的树木上,来创建使它们挥舞着树枝和树叶仿佛被风吹过。
To the left a Spherical Wind Zone, to the right a Directional Wind zone.
左边一个球面风区,以正确的定向风力区。
Properties 属性
Mode
模式
Spherical 球形
Wind zone only has an effect inside the radius, and has a falloff from the center towards the edge.
风区仅影响半径内,并有从中心朝向边缘衰减。
Directional 方向
Wind zone affects the entire scene in one direction.
风区会影响整个场景的一个方向。
Radius 半径
Radius of the Spherical Wind Zone (only active if the mode is set to Spherical).
半径的球形风区(如果模式设置为球形)。
Wind Main 主风
The primary wind force. Produces a softly changing wind pressure.
主要风力。产生风压柔和变化。
Turbulence 紊流
The turbulence wind force. Produces a rapidly changing wind pressure.
湍流风的力量。产生一个瞬息万变的风压。
Pulse Magnitude 脉冲幅度
Defines how much the wind changes over time.
定义有多大风随时间的变化。
Pulse Frequency 脉率
Defines the frequency of the wind changes.
定义风向改变的频率。
Details 细节
Wind Zones are used only by the tree creator for animating leaves and branches. This can help your scenes appear more natural and allows forces (such as explosions) within the game to look like they are interacting with the trees. For more information about how a tree works, just visit the tree class page.
风区只用于树的树叶和树枝创造者动画。这可以帮助你的场景看起来更自然和允许力度(如爆炸)在游戏中看起来像与之交互的树木。为更多的信息关于树的作品,只是访问树类页面。
Using Wind Zones in Unity.
在Unity中使用风区
Using Wind Zones in Unity is really simple. First of all, to create a new wind zone just click on Game Object -> Create Other -> Wind Zone. Place the wind zone (depending on the type) near the trees created with the tree creator and watch it interact with your trees!.
首先,创建一个新的风区只要按下 Game Object -> Create Other -> Wind Zone。
Note: If the wind zone is Spherical you should place it so that the trees you want to blow are within the sphere's radius. If the wind zone is directional it doesn't matter where in the scene you place it.
注意:如果风区是球形的,你应该把树放在你想吹在球体的半径内。如果风区是定向的你在场景中怎么放置都没关系。
Hints 提示
To produce a softly changing general wind:
要柔和变化一般风:
Create a directional wind zone.
创建一个方向风区。
Set Wind Main to 1.0 or less, depending on how powerful the wind should be.
将小于或等于1.0,风主要取决于多么强大的风。
Set Turbulence to 0.1.
将湍流为0.1。
Set Pulse Magnitude to 1.0 or more.
将脉冲幅度为1.0或以上。
Set Pulse Frequency to 0.25.
设定脉冲频率为0.25。
To create the effect of a helicopter passing by:
要创建的直升机路过的效果:
Create a spherical wind zone.
创建一个球风区。
Set Radius to something that fits the size of your helicopter
设置半径为一些适合你的直升机的大小
Set Wind Main to 3.0
将风主要为3.0
Set Turbulence to 5.0
将湍流至5.0
Set Pulse Magnitude to 0.1
设置脉冲幅度为0.1
Set Pulse Frequency to 1.0
设定脉冲频率为1.0
Attach the wind zone to a GameObject resembling your helicopter.
连接到一个物体类似的直升机风区。
To create the effect of an explosion:
要创建一个爆炸的效果:
Do the same as with the helicopter, but fade the Wind Main and Turbulence quickly to make the effect wear off.