Unity 自带风场组件

今天把viking village拿出来看了下,毕竟是3年前的工程,效果确实赶不上现在的《死亡之书》等2018版本的工程,有几个插件平时没有用到,学习了下

风场组件:Wind Zone



文档中这么描述:

Tree - Wind Zones

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.To the left a Spherical Wind Zone, to the right a Directional Wind zone.

Properties

Property: Function:
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).
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

Using Wind Zones in Unity is really simple. First of all, to create a new wind zone just click on Game Object > 3D Object > 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!.

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.


猜你喜欢

转载自blog.csdn.net/qq_21153225/article/details/80911650