Class Module_ControlSurface
- Namespace
- KSP.Modules
- Assembly
- Assembly-CSharp.dll
public class Module_ControlSurface : Module_LiftingSurface, IPartModule, IFixedUpdate, IPriorityOverride, IUpdate, IObjectAssemblyPartModule, ILiftProvider, ITorqueProvider
- Inheritance
-
Module_ControlSurface
- Implements
-
- Derived
-
- Inherited Members
-
Module_LiftingSurface.CalculateLiftDragForces(ref ModuleProperty<float>, ref ModuleProperty<float>, Data_LiftingSurface.TransformDir, float, Transform, ref Data_LiftingSurface.LiftForce, ref Data_LiftingSurface.DragForce, float, Vector3, ref ModuleProperty<float>, out Vector3)
- Extension Methods
-
Constructors
Module_ControlSurface()
public Module_ControlSurface()
Fields
ControlSurfaceAttributeName
protected static readonly string ControlSurfaceAttributeName
Field Value
- string
_action
Field Value
- float
_ctrlSurface
protected Transform _ctrlSurface
Field Value
- Transform
_currentDeployAngle
protected float _currentDeployAngle
Field Value
- float
_deflection
protected float _deflection
Field Value
- float
_deflectionDirection
public float _deflectionDirection
Field Value
- float
_forwardDirection
protected Data_LiftingSurface.TransformDir _forwardDirection
Field Value
- Data_LiftingSurface.TransformDir
protected Vector3 _inputVector
Field Value
- Vector3
_neutral
protected Quaternion _neutral
Field Value
- Quaternion
protected Transform _referenceXform
Field Value
- Transform
_roll
Field Value
- float
_rotationAxesSignDot
protected float _rotationAxesSignDot
Field Value
- float
_rotationVector
protected Vector3 _rotationVector
Field Value
- Vector3
dataCtrlSurface
protected Data_ControlSurface dataCtrlSurface
Field Value
- Data_ControlSurface
upRefSignDot
protected float upRefSignDot
Field Value
- float
vesselRef
protected Transform vesselRef
Field Value
- Transform
Properties
IsProceduralPart
public bool IsProceduralPart { get; }
Property Value
- bool
PartComponentModuleType
public override Type PartComponentModuleType { get; }
Property Value
- Type
Methods
AddDataModules()
protected override void AddDataModules()
CtrlSurfaceUpdate(Vector3, float)
protected virtual void CtrlSurfaceUpdate(Vector3 vel, float deltaTime)
Parameters
vel Vector3
deltaTime float
GetModuleDisplayName()
public override string GetModuleDisplayName()
Returns
- string
GetPotentialLift(bool)
public Vector3 GetPotentialLift(bool positiveDeflection)
Parameters
positiveDeflection bool
Returns
- Vector3
GetPotentialTorque(out Vector3, out Vector3)
public void GetPotentialTorque(out Vector3 pos, out Vector3 neg)
Parameters
pos Vector3
neg Vector3
MeshDataChanged()
protected void MeshDataChanged()
OnCenterOfLiftQuery(ObjectAssemblyCOPressureQuery)
public override 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()
UpdatePAMControlVisibility()
protected override void UpdatePAMControlVisibility()