NWH Aerodynamics
Search Results for

    Show / Hide Table of Contents

    Class AircraftInputManager

    Manages aircraft input by retrieving it from active InputProviders and populating InputStates.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    AircraftInputManager
    Namespace: NWH.Aerodynamics.AircraftController.Input
    Assembly: NWH.Aerodynamics.dll
    Syntax
    [Serializable]
    [DisallowMultipleComponent]
    [RequireComponent(typeof(AircraftController))]
    [DefaultExecutionOrder(-50)]
    public class AircraftInputManager : MonoBehaviour

    Fields

    | Edit this page View Source

    autoSetInput

    When enabled, input is auto-retrieved from InputProviders in the scene. Disable to manually set input through external scripts (e.g., AI controller).

    Declaration
    [FormerlySerializedAs("autoSettable")]
    [Tooltip("When enabled input will be auto-retrieved from the InputProviders present in the scene.\r\nDisable to manualy set the input through external scripts, i.e. AI controller.")]
    public bool autoSetInput
    Field Value
    Type Description
    bool
    | Edit this page View Source

    states

    All input states for the aircraft. Can be set through scripting or copied between aircraft.

    Declaration
    [Tooltip("All the input states of the vehicle. Can be used to set input through scripting or copy the inputs\r\nover from other vehicle, such as truck to trailer.")]
    public AircraftInputStates states
    Field Value
    Type Description
    AircraftInputStates

    Properties

    | Edit this page View Source

    Ailerons

    Aileron control input ranging from -1 (full left) to +1 (full right). Controls aircraft roll.

    Declaration
    public float Ailerons { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    AileronsTrimLeft

    Trim adjustment input for left aileron. Reduces pilot workload by adjusting neutral aileron position.

    Declaration
    public bool AileronsTrimLeft { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    AileronsTrimRight

    Trim adjustment input for right aileron. Reduces pilot workload by adjusting neutral aileron position.

    Declaration
    public bool AileronsTrimRight { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Brakes

    Common brake input. Applies braking force to all landing gear wheels when held.

    Declaration
    public bool Brakes { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    BrakesLeft

    Left brake input. Applies braking force to left landing gear wheels for differential braking and steering.

    Declaration
    public bool BrakesLeft { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    BrakesRight

    Right brake input. Applies braking force to right landing gear wheels for differential braking and steering.

    Declaration
    public bool BrakesRight { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Elevator

    Elevator control input ranging from -1 (full down/nose down) to +1 (full up/nose up). Controls aircraft pitch.

    Declaration
    public float Elevator { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    ElevatorTrimDown

    Trim adjustment input for elevator down (nose down). Reduces control stick pressure during cruise.

    Declaration
    public bool ElevatorTrimDown { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    ElevatorTrimUp

    Trim adjustment input for elevator up (nose up). Reduces control stick pressure during cruise.

    Declaration
    public bool ElevatorTrimUp { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    EngineStartCommon

    Engine start input. Initiates engine start sequence for all engines when held.

    Declaration
    public bool EngineStartCommon { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    EngineStopCommon

    Engine stop input. Shuts down all running engines immediately.

    Declaration
    public bool EngineStopCommon { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    FlapsExtend

    Incremental flap extension input. Moves flaps to next detent position for increased lift and drag.

    Declaration
    public bool FlapsExtend { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    FlapsExtendFully

    Full flap extension input. Immediately extends flaps to maximum position for landing configuration.

    Declaration
    public bool FlapsExtendFully { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    FlapsRetract

    Incremental flap retraction input. Moves flaps to previous detent position for reduced drag.

    Declaration
    public bool FlapsRetract { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    FlapsRetractFully

    Full flap retraction input. Immediately retracts flaps to minimum position for cruise configuration.

    Declaration
    public bool FlapsRetractFully { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    LandingGear

    Landing gear toggle input. Extends or retracts the landing gear based on current state.

    Declaration
    public bool LandingGear { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    LandingLights

    Landing lights toggle input. Controls high-intensity lights used during takeoff and landing.

    Declaration
    public bool LandingLights { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    NavigationLights

    Navigation lights toggle input. Controls anti-collision and position lights for night operations.

    Declaration
    public bool NavigationLights { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    ParkingBrake

    Parking brake toggle input. Locks landing gear brakes to prevent aircraft movement on ground.

    Declaration
    public bool ParkingBrake { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    PropPitch

    Propeller pitch control input. Adjusts blade angle for variable-pitch propellers to optimize efficiency.

    Declaration
    public float PropPitch { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    PropPitchDecrease

    Incremental propeller pitch decrease input. Decreases blade angle for lower thrust at higher RPM.

    Declaration
    public bool PropPitchDecrease { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    PropPitchIncrease

    Incremental propeller pitch increase input. Increases blade angle for higher thrust at lower RPM.

    Declaration
    public bool PropPitchIncrease { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Rudder

    Rudder control input ranging from -1 (full left) to +1 (full right). Controls aircraft yaw.

    Declaration
    public float Rudder { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    RudderTrimLeft

    Trim adjustment input for left rudder. Reduces pilot workload during asymmetric flight conditions.

    Declaration
    public bool RudderTrimLeft { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    RudderTrimRight

    Trim adjustment input for right rudder. Reduces pilot workload during asymmetric flight conditions.

    Declaration
    public bool RudderTrimRight { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    SmokeSystem

    Smoke system toggle input. Activates aerobatic smoke system for airshow demonstrations.

    Declaration
    public bool SmokeSystem { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Spoilers

    Spoiler activation input. Deploys spoilers to disrupt lift and increase drag for rapid descent or landing.

    Declaration
    public bool Spoilers { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    ThrottleCommon

    Common throttle input for all engines ranging from 0 (idle) to 1 (full power). Individual engine control may override this value.

    Declaration
    public float ThrottleCommon { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    ThrottleDecrease

    Incremental throttle decrease input. Gradually reduces engine power when held.

    Declaration
    public bool ThrottleDecrease { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    ThrottleFull

    Throttle full input. Sets throttle to maximum position for full thrust.

    Declaration
    public bool ThrottleFull { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    ThrottleIdle

    Throttle idle input. Sets throttle to idle position for minimum thrust.

    Declaration
    public bool ThrottleIdle { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    ThrottleIncrease

    Incremental throttle increase input. Gradually increases engine power when held.

    Declaration
    public bool ThrottleIncrease { get; set; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    FixedUpdate()

    Declaration
    public void FixedUpdate()
    | Edit this page View Source

    Update()

    Declaration
    public void Update()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics