Struct FlightCtrlState
- Namespace
- KSP.Sim.State
- Assembly
- Assembly-CSharp.dll
public struct FlightCtrlState
- Inherited Members
-
- Extension Methods
-
Constructors
FlightCtrlState(SerializedFlightControlState)
public FlightCtrlState(SerializedFlightControlState src)
Parameters
src SerializedFlightControlState
FlightCtrlState(FlightCtrlState)
public FlightCtrlState(FlightCtrlState src)
Parameters
src FlightCtrlState
Fields
X
Field Value
- float
Y
Field Value
- float
Z
Field Value
- float
brakes
Field Value
- bool
gearDown
Field Value
- bool
gearUp
Field Value
- bool
headlight
Field Value
- bool
identity
public static readonly FlightCtrlState identity
Field Value
- FlightCtrlState
Field Value
- float
Field Value
- float
Field Value
- float
killRot
Field Value
- bool
mainThrottle
public float mainThrottle
Field Value
- float
pitch
Field Value
- float
pitchTrim
Field Value
- float
prelaunchInitiated
public bool prelaunchInitiated
Field Value
- bool
roll
Field Value
- float
rollTrim
Field Value
- float
stage
Field Value
- bool
wheelSteer
Field Value
- float
wheelSteerTrim
public float wheelSteerTrim
Field Value
- float
wheelThrottle
public float wheelThrottle
Field Value
- float
wheelThrottleTrim
public float wheelThrottleTrim
Field Value
- float
yaw
Field Value
- float
yawTrim
Field Value
- float
Properties
isIdle
public bool isIdle { get; }
Property Value
- bool
isNeutral
public bool isNeutral { get; }
Property Value
- bool
Methods
CutThrottle()
public void CutThrottle()
Equals(object)
public override bool Equals(object obj)
Parameters
obj object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
GetPitchRollYaw()
public Vector3 GetPitchRollYaw()
Returns
- Vector3
public Vector3 GetPitchRollYawInput()
Returns
- Vector3
GetWheels()
public Vector2 GetWheels()
Returns
- Vector2
GetXYZ()
Returns
- Vector3
MakeIncrementalDiff(FlightCtrlState)
public FlightCtrlStateIncremental MakeIncrementalDiff(FlightCtrlState todiff)
Parameters
todiff FlightCtrlState
Returns
- FlightCtrlStateIncremental
Neutralize()
NeutralizeAll()
public void NeutralizeAll()
NeutralizeStick()
public void NeutralizeStick()
ResetAllValues()
public void ResetAllValues()
ResetTrim()
Set(SerializedFlightControlState)
public void Set(SerializedFlightControlState src)
Parameters
src SerializedFlightControlState
Set(FlightCtrlState)
public void Set(FlightCtrlState src)
Parameters
src FlightCtrlState
Operators
operator ==(FlightCtrlState, FlightCtrlState)
public static bool operator ==(FlightCtrlState x, FlightCtrlState y)
Parameters
x FlightCtrlState
y FlightCtrlState
Returns
- bool
operator !=(FlightCtrlState, FlightCtrlState)
public static bool operator !=(FlightCtrlState x, FlightCtrlState y)
Parameters
x FlightCtrlState
y FlightCtrlState
Returns
- bool