Table of Contents

Class Module_LiftingSurface

Namespace
KSP.Modules
Assembly
Assembly-CSharp.dll
public class Module_LiftingSurface : PartBehaviourModule, IPartModule, IFixedUpdate, IPriorityOverride, IUpdate, IObjectAssemblyPartModule, ILiftProvider
Inheritance
Module_LiftingSurface
Implements
Derived
Inherited Members
Extension Methods

Constructors

Module_LiftingSurface()

public Module_LiftingSurface()

Fields

CorePartData

protected CorePartData CorePartData

Field Value

CorePartData

_showPAMDebug

protected static bool _showPAMDebug

Field Value

bool

baseTransform

public Transform baseTransform

Field Value

Transform

dataLiftingSurface

protected Data_LiftingSurface dataLiftingSurface

Field Value

Data_LiftingSurface

debugThis

public bool debugThis

Field Value

bool

Properties

DataLiftingSurface

public Data_LiftingSurface DataLiftingSurface { get; }

Property Value

Data_LiftingSurface

LiftForce

public Data_LiftingSurface.LiftForce LiftForce { get; }

Property Value

Data_LiftingSurface.LiftForce

PartComponentModuleType

public override Type PartComponentModuleType { get; }

Property Value

Type

ShowPAMDebug

public static bool ShowPAMDebug { get; set; }

Property Value

bool

Methods

AddDataModules()

protected override void AddDataModules()

COPQuery(ref ObjectAssemblyCOPressureQuery, Transform, TransformDir, float, float, Vector3)

protected void COPQuery(ref ObjectAssemblyCOPressureQuery qry, Transform baseTransform, Data_LiftingSurface.TransformDir transformDir, float transformSign, float deflectionLiftCoeff, Vector3 coPressureOffset)

Parameters

qry ObjectAssemblyCOPressureQuery
baseTransform Transform
transformDir Data_LiftingSurface.TransformDir
transformSign float
deflectionLiftCoeff float
coPressureOffset Vector3

CalculateLiftDragForces(ref ModuleProperty<float>, ref ModuleProperty<float>, TransformDir, float, Transform, ref LiftForce, ref DragForce, float, Vector3, ref ModuleProperty<float>, out Vector3)

protected virtual void CalculateLiftDragForces(ref ModuleProperty<float> liftScalar, ref ModuleProperty<float> dragScalar, Data_LiftingSurface.TransformDir transformDir, float transformSign, Transform referenceTransform, ref Data_LiftingSurface.LiftForce liftForce, ref Data_LiftingSurface.DragForce dragForce, float deflectionLiftCoeff, Vector3 coPressureOffset, ref ModuleProperty<float> aoaProperty, out Vector3 normalizedVelocity)

Parameters

liftScalar ModuleProperty<float>
dragScalar ModuleProperty<float>
transformDir Data_LiftingSurface.TransformDir
transformSign float
referenceTransform Transform
liftForce Data_LiftingSurface.LiftForce
dragForce Data_LiftingSurface.DragForce
deflectionLiftCoeff float
coPressureOffset Vector3
aoaProperty ModuleProperty<float>
normalizedVelocity Vector3

GetDisableAerodynamics()

protected bool GetDisableAerodynamics()

Returns

bool

GetDragVector(ref ModuleProperty<float>, Vector3, float, double, float)

public Vector3 GetDragVector(ref ModuleProperty<float> dragScalar, Vector3 nVel, float absDot, double Q, float deflectionLiftCoeff)

Parameters

dragScalar ModuleProperty<float>
nVel Vector3
absDot float
Q double
deflectionLiftCoeff float

Returns

Vector3

GetDragVector(ref ModuleProperty<float>, Vector3, float, double, float, float)

public Vector3 GetDragVector(ref ModuleProperty<float> dragScalar, Vector3 nVel, float absDot, double Q, float mach, float deflectionLiftCoeff)

Parameters

dragScalar ModuleProperty<float>
nVel Vector3
absDot float
Q double
mach float
deflectionLiftCoeff float

Returns

Vector3

GetLiftVector(ref ModuleProperty<float>, Vector3, float, float, double, float, float, Vector3)

public Vector3 GetLiftVector(ref ModuleProperty<float> liftScalar, Vector3 liftVector, float liftDot, float absDot, double Q, float mach, float deflectionLiftCoeff, Vector3 normalizedVelocity)

Parameters

liftScalar ModuleProperty<float>
liftVector Vector3
liftDot float
absDot float
Q double
mach float
deflectionLiftCoeff float
normalizedVelocity Vector3

Returns

Vector3

OnCenterOfLiftQuery(ObjectAssemblyCOPressureQuery)

public virtual void OnCenterOfLiftQuery(ObjectAssemblyCOPressureQuery qry)

Parameters

qry ObjectAssemblyCOPressureQuery

OnInitialize()

protected override void OnInitialize()

OnModuleFixedUpdate(float)

protected override void OnModuleFixedUpdate(float fixedDeltaTime)

Parameters

fixedDeltaTime float

OnShutdown()

protected override void OnShutdown()

SetupCoefficients(Transform, TransformDir, float, Vector3, out Vector3, out Vector3, out float, out float)

public void SetupCoefficients(Transform baseTransform, Data_LiftingSurface.TransformDir transformDir, float transformSign, Vector3 velocity, out Vector3 normalizedVelocity, out Vector3 liftVector, out float liftDot, out float absDot)

Parameters

baseTransform Transform
transformDir Data_LiftingSurface.TransformDir
transformSign float
velocity Vector3
normalizedVelocity Vector3
liftVector Vector3
liftDot float
absDot float

UpdatePAMControlVisibility()

protected virtual void UpdatePAMControlVisibility()

Events

OnPAMDebugChanged

public static event Action OnPAMDebugChanged

Event Type

Action