Class WeatherExposureTerm
One input's contribution to an exposure state.
[Serializable]
public class WeatherExposureTerm
- Inheritance
-
WeatherExposureTerm
- Inherited Members
Fields
Channel
[Tooltip("Which weather channel to read. Ignored unless Input is Channel.")]
public WeatherChannel Channel
Field Value
Full
[Tooltip("The input's value at which this term contributes all of its weight.")]
[Range(0, 1)]
public float Full
Field Value
FullWindSpeedMetersPerSecond
The wind speed, in m/s, that AirWindSpeed reads as 1.
public const float FullWindSpeedMetersPerSecond = 30
Field Value
Remarks
The same 30 m/s WindSpeed is normalised against, so a term reading either one is on the same scale.
Input
[Tooltip("What this term reads: a weather channel, or one of the driver's physical air properties.")]
public WeatherExposureInput Input
Field Value
Onset
[Tooltip("The input's value below which this term contributes nothing.")]
[Range(0, 1)]
public float Onset
Field Value
Weight
[Tooltip("How much of the drive this term is worth, against the other terms.")]
[Range(0, 4)]
public float Weight
Field Value
Methods
Evaluate(in WeatherFrame, in WeatherAir)
How much this term drives the state, 0..Weight.
public float Evaluate(in WeatherFrame frame, in WeatherAir air)
Parameters
frameWeatherFrameairWeatherAir
Returns
Read(in WeatherFrame, in WeatherAir)
This term's input, normalised to 0..1.
public float Read(in WeatherFrame frame, in WeatherAir air)
Parameters
frameWeatherFrameairWeatherAir