文档

Unity Engine


User Manual

Script Reference

Unity Engine


Wind reference

Reference for the Wind Zone component.
阅读时间1 分钟最后更新于 1 个月前

Property

Function

Mode: DirectionalThe Wind Zone affects the entire scene and blows in one direction. This is the default mode.
Mode: SphericalThe Wind Zone only has an effect inside the radius, and has a falloff from the center towards the edge.
RadiusWind Zone size (active only if the mode is Spherical).
MainThe primary force applied to all objects the Wind Zone affects. The numerical value is the wind speed; the plus and minus signs are the direction. If the value is 0, but Turbulence has a value other than 0, the trees still move. If both Main and Turbulence are 0, the trees bend, but they don't move - they stay in a static bent position.
TurbulenceRepresents the noise applied to the wind speed. A greater value creates higher variation in wind speed. If Turbulence isn't 0, there's wind even if Main is 0. If Turbulence is 0, there's no wind even if Main has a value other than 0.
Pulse MagnitudePulses create the appearance of gusts of wind that are stronger than the main wind. Magnitude is a multiplier of Main, meaning if Main and Turbulence are both 0 the pulses are also 0.
Pulse FrequencyHow frequent pulses are, and how long they last. More frequent pulses are shorter.

Additional resources