Class WindGeneratorBase
Base class for wind generators. Implement to create custom wind systems affecting aircraft flight.
Namespace: NWH.Aerodynamics.Environment
Assembly: NWH.Aerodynamics.dll
Syntax
public abstract class WindGeneratorBase : MonoBehaviour
Remarks
Wind affects aircraft by modifying airspeed and introducing disturbances. Subclasses can implement:
- Constant wind (prevailing winds)
- Turbulence (random gusts)
- Weather systems (fronts, storms)
- Terrain effects (mountain waves, thermals) The singleton Instance allows global access from aerodynamic components.
Fields
| Edit this page View SourceInstance
Singleton instance providing global access to the active wind generator in the scene.
Declaration
public static WindGeneratorBase Instance
Field Value
| Type | Description |
|---|---|
| WindGeneratorBase |
Methods
| Edit this page View SourceAwake()
Declaration
public virtual void Awake()
GetWindVelocity()
Returns the current wind velocity vector in world space at the querying aircraft's position. Wind velocity is added to aircraft ground speed to compute airspeed for aerodynamic calculations.
Declaration
public abstract Vector3 GetWindVelocity()
Returns
| Type | Description |
|---|---|
| Vector3 | Wind velocity in m/s (world space coordinates) |