NWH Aerodynamics
Search Results for

    Show / Hide Table of Contents

    Class WindGeneratorBase

    Base class for wind generators. Implement to create custom wind systems affecting aircraft flight.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    WindGeneratorBase
    RandomWindGenerator
    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 Source

    Instance

    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 Source

    Awake()

    Declaration
    public virtual void Awake()
    | Edit this page View Source

    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)

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics