NWH Aerodynamics
Search Results for

    Show / Hide Table of Contents

    Class AircraftFuelConsumer

    Abstract base class for components that consume fuel from the aircraft fuel system. Implement this class to create custom fuel-consuming systems.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    AircraftFuelConsumer
    EngineAircraftFuelConsumer
    Namespace: NWH.Aerodynamics.AircraftController.Fuel
    Assembly: NWH.Aerodynamics.dll
    Syntax
    public abstract class AircraftFuelConsumer : MonoBehaviour
    Remarks

    The AircraftFuelManager automatically detects all AircraftFuelConsumer components and queries their consumption each frame. Engines typically implement this interface to report fuel burn based on throttle and RPM.

    Methods

    | Edit this page View Source

    GetConsumption()

    Returns the current fuel consumption rate in liters per second. Called by AircraftFuelManager each physics update.

    Declaration
    public abstract float GetConsumption()
    Returns
    Type Description
    float

    Fuel consumption rate (liters/second)

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