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
        SphericalWind zone only has an effect inside the radius, and has a falloff from the center towards the edge.
        DirectionalWind zone affects the entire scene in one direction.
RadiusRadius of the Spherical Wind Zone (only active if the mode is set to Spherical).
MainThe primary wind force. Produces a softly changing wind pressure.
TurbulenceThe turbulence wind force. Produces a rapidly changing wind pressure.
Pulse MagnitudeDefines how much the wind changes over time.
Pulse FrequencyDefines 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.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Deveuper

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值