Struct AircraftInputStates
Stores input states for the aircraft. Allows input to be copied between aircraft.
Namespace: NWH.Aerodynamics.AircraftController.Input
Assembly: NWH.Aerodynamics.dll
Syntax
[Serializable]
public struct AircraftInputStates
Fields
| Edit this page View Sourceailerons
Aileron deflection ranging from -1 (full left roll) to +1 (full right roll).
Declaration
[Range(-1, 1)]
public float ailerons
Field Value
| Type | Description |
|---|---|
| float |
aileronsTrimLeft
Left aileron trim adjustment input. Used to reduce control pressure during asymmetric flight.
Declaration
public bool aileronsTrimLeft
Field Value
| Type | Description |
|---|---|
| bool |
aileronsTrimRight
Right aileron trim adjustment input. Used to reduce control pressure during asymmetric flight.
Declaration
public bool aileronsTrimRight
Field Value
| Type | Description |
|---|---|
| bool |
brakes
Common brake input. Applies braking force to all landing gear wheels.
Declaration
public bool brakes
Field Value
| Type | Description |
|---|---|
| bool |
brakesLeft
Left brake input. Applies braking force to left landing gear for differential braking.
Declaration
public bool brakesLeft
Field Value
| Type | Description |
|---|---|
| bool |
brakesRight
Right brake input. Applies braking force to right landing gear for differential braking.
Declaration
public bool brakesRight
Field Value
| Type | Description |
|---|---|
| bool |
elevator
Elevator deflection ranging from -1 (full down/nose down) to +1 (full up/nose up).
Declaration
[Range(-1, 1)]
public float elevator
Field Value
| Type | Description |
|---|---|
| float |
elevatorTrimDown
Downward elevator trim adjustment input. Reduces control stick pressure during cruise.
Declaration
public bool elevatorTrimDown
Field Value
| Type | Description |
|---|---|
| bool |
elevatorTrimUp
Upward elevator trim adjustment input. Reduces control stick pressure during cruise.
Declaration
public bool elevatorTrimUp
Field Value
| Type | Description |
|---|---|
| bool |
engineStartCommon
Engine start input for all engines. Initiates engine start sequence.
Declaration
public bool engineStartCommon
Field Value
| Type | Description |
|---|---|
| bool |
engineStopCommon
Engine stop input for all engines. Shuts down running engines.
Declaration
public bool engineStopCommon
Field Value
| Type | Description |
|---|---|
| bool |
flapsExtend
Incremental flap extension input. Extends flaps by one detent for increased lift.
Declaration
public bool flapsExtend
Field Value
| Type | Description |
|---|---|
| bool |
flapsExtendFully
Full flap extension input. Extends flaps to maximum position for landing.
Declaration
public bool flapsExtendFully
Field Value
| Type | Description |
|---|---|
| bool |
flapsRetract
Incremental flap retraction input. Retracts flaps by one detent for reduced drag.
Declaration
public bool flapsRetract
Field Value
| Type | Description |
|---|---|
| bool |
flapsRetractFully
Full flap retraction input. Retracts flaps to minimum position for cruise.
Declaration
public bool flapsRetractFully
Field Value
| Type | Description |
|---|---|
| bool |
landingGear
Landing gear toggle input. Extends or retracts landing gear based on current state.
Declaration
public bool landingGear
Field Value
| Type | Description |
|---|---|
| bool |
landingLights
Landing lights toggle input. Controls high-intensity forward-facing lights.
Declaration
public bool landingLights
Field Value
| Type | Description |
|---|---|
| bool |
navigationLights
Navigation lights toggle input. Controls position and anti-collision lights.
Declaration
public bool navigationLights
Field Value
| Type | Description |
|---|---|
| bool |
parkingBrake
Parking brake toggle input. Locks landing gear brakes when stationary.
Declaration
public bool parkingBrake
Field Value
| Type | Description |
|---|---|
| bool |
propPitch
Propeller pitch control value for variable-pitch propellers.
Declaration
public float propPitch
Field Value
| Type | Description |
|---|---|
| float |
propPitchDecrease
Incremental propeller pitch decrease input. Decreases blade angle for finer pitch.
Declaration
public bool propPitchDecrease
Field Value
| Type | Description |
|---|---|
| bool |
propPitchIncrease
Incremental propeller pitch increase input. Increases blade angle for coarser pitch.
Declaration
public bool propPitchIncrease
Field Value
| Type | Description |
|---|---|
| bool |
rudder
Rudder deflection ranging from -1 (full left yaw) to +1 (full right yaw).
Declaration
[Range(-1, 1)]
public float rudder
Field Value
| Type | Description |
|---|---|
| float |
rudderTrimLeft
Left rudder trim adjustment input. Compensates for asymmetric thrust or crosswinds.
Declaration
public bool rudderTrimLeft
Field Value
| Type | Description |
|---|---|
| bool |
rudderTrimRight
Right rudder trim adjustment input. Compensates for asymmetric thrust or crosswinds.
Declaration
public bool rudderTrimRight
Field Value
| Type | Description |
|---|---|
| bool |
smokeSystem
Smoke system toggle input. Activates aerobatic smoke system.
Declaration
public bool smokeSystem
Field Value
| Type | Description |
|---|---|
| bool |
spoilers
Spoiler deployment input. Deploys spoilers to disrupt lift and increase descent rate.
Declaration
public bool spoilers
Field Value
| Type | Description |
|---|---|
| bool |
throttleCommon
Common throttle position ranging from 0 (idle) to 1 (full power) for all engines.
Declaration
[Range(0, 1)]
public float throttleCommon
Field Value
| Type | Description |
|---|---|
| float |
throttleDecrease
Incremental throttle decrease input. Gradually decreases engine power.
Declaration
public bool throttleDecrease
Field Value
| Type | Description |
|---|---|
| bool |
throttleFull
Throttle full input. Sets throttle to maximum power position.
Declaration
public bool throttleFull
Field Value
| Type | Description |
|---|---|
| bool |
throttleIdle
Throttle idle input. Sets throttle to minimum power position.
Declaration
public bool throttleIdle
Field Value
| Type | Description |
|---|---|
| bool |
throttleIncrease
Incremental throttle increase input. Gradually increases engine power.
Declaration
public bool throttleIncrease
Field Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceReset()
Declaration
public void Reset()
ResetOnFixedUpdate()
Reset inputs that are used as triggers and should be processed once.
Declaration
public void ResetOnFixedUpdate()
ResetOnUpdate()
Reset inputs that are constantly used.
Declaration
public void ResetOnUpdate()