Class AircraftInputManager
Manages aircraft input by retrieving it from active InputProviders and populating InputStates.
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 SourceautoSetInput
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 |
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 SourceAilerons
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
EngineStartCommon
Engine start input. Initiates engine start sequence for all engines when held.
Declaration
public bool EngineStartCommon { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
EngineStopCommon
Engine stop input. Shuts down all running engines immediately.
Declaration
public bool EngineStopCommon { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
SmokeSystem
Smoke system toggle input. Activates aerobatic smoke system for airshow demonstrations.
Declaration
public bool SmokeSystem { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
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 |
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 |
ThrottleDecrease
Incremental throttle decrease input. Gradually reduces engine power when held.
Declaration
public bool ThrottleDecrease { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ThrottleFull
Throttle full input. Sets throttle to maximum position for full thrust.
Declaration
public bool ThrottleFull { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ThrottleIdle
Throttle idle input. Sets throttle to idle position for minimum thrust.
Declaration
public bool ThrottleIdle { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
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 SourceFixedUpdate()
Declaration
public void FixedUpdate()
Update()
Declaration
public void Update()