Search Unity

Unity WindZone, what unit ?

Discussion in 'Scripting' started by FMFishingCactus, Apr 18, 2019.

  1. FMFishingCactus

    FMFishingCactus

    Joined:
    Oct 23, 2018
    Posts:
    5
    Hello guys,

    Seems like a very common question but can't find any answer...

    What if I want to set the wind to a specific speed, I mean with a value in natural unit like kilometer/hour, meter/second or miles/hour ?
    Lets say I want to set it to 20 m/s, how to calculate the value I should set to WindZone.main?
    Even if the WindZone is physics based, there must be a way to set something similar to a specific speed to get something realistic (more or less accurate, but at least realistic) or even a way to calculate the speed from the wind to display it on UI/HUD.

    Any idea ?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    Haven't used WindZones but if it is like almost 100% of everything else in Unity, generally it means "world units per second." Generally we treat one world unit in Unity as a meter. Does that seem close to empirical results?
     
  3. FMFishingCactus

    FMFishingCactus

    Joined:
    Oct 23, 2018
    Posts:
    5
    I watched a few videos showing the wind blowing at different speed and I tried to tweak a multiplier over the m/s value to make it "close enough". I hoped (and still hoping) there is a better way to control that.