樹木 - 風區 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.
左邊一個球面風區,以正確的定向風力區。

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. 
      不要與直升機一樣,但要快速淡出主要風和紊流來製作逐漸減弱的效果。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章