Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
StabilityOverlayTest Class Reference
Inheritance diagram for StabilityOverlayTest:

Classes

class  CoLTest
 

Public Member Functions

void ArcMesh ()
 
void BgArcMesh (Mesh m, float radius, float width, int segments, float angleStart, float angleEnd, Vector3 center, Vector3 axis, Vector3 fwd, Func< float, float, Color > colorMethod)
 
void DrawMesh ()
 
void EquilibriumFloaterUpdate (CoLTest test)
 
void KillMeshObj ()
 
void OnDestroy ()
 
void OnDrawGizmo (EditorMarker_CoL gizmoCoL)
 
void OnGUI ()
 
void OnInit ()
 
void onPartEvent (ConstructionEventType evt, Part p)
 
void onShipModified (ShipConstruct ship)
 
void ResetEquilibriumFloater (Vector3 noseAxis)
 
float RoundedArcCapMethod (float angleStart, float angleEnd, float angle)
 
void Solve (ShipConstruct ship, bool resetFloater)
 
void SpawnMeshObj ()
 
void TriangulateMesh (int v00, int v01, int v0, int v1, int[] tris)
 

Static Public Member Functions

static void Disconnect ()
 
static void Init ()
 
static void onPlayModeChanged (PlayModeStateChange state)
 

Public Attributes

float airspeed = 100f
 
float AoA = 0f
 
float arcRange = 120f * Mathf.Deg2Rad
 
Color bgColor1 = new Color(0.3058824f, 0.4901961f, 0.509804f, 1f)
 
Color bgColor2 = new Color(0.227451f, 0.2470588f, 0.2509804f, 1f)
 
Color floaterColor = XKCDColors.GreyBlue
 
float graphScalingBias = 0.1f
 
Color noseAxisColor = XKCDColors.BrightOrange
 
float noseAxisLineLength = 10f
 
bool online = false
 
int pitchSamples = 180
 
float radius = 6f
 
float sampleDistribution = 1f
 
Color stableArcColor = XKCDColors.ElectricLime * 0.5f
 
Color stableEnvColor = XKCDColors.ElectricLime
 
Color torqueColor = XKCDColors.BrightPurple
 
Color unstableArcColor = XKCDColors.KSPNotSoGoodOrange * 0.5f
 
Color unstableEnvColor = XKCDColors.KSPNotSoGoodOrange
 

Member Function Documentation

void StabilityOverlayTest.ArcMesh ( )
inline

< triangulate from the previous set of vertices forward

void StabilityOverlayTest.BgArcMesh ( Mesh  m,
float  radius,
float  width,
int  segments,
float  angleStart,
float  angleEnd,
Vector3  center,
Vector3  axis,
Vector3  fwd,
Func< float, float, Color >  colorMethod 
)
inline

< triangulate from the previous set of vertices forward

static void StabilityOverlayTest.Disconnect ( )
inlinestatic
void StabilityOverlayTest.DrawMesh ( )
inline
void StabilityOverlayTest.EquilibriumFloaterUpdate ( CoLTest  test)
inline
static void StabilityOverlayTest.Init ( )
inlinestatic
void StabilityOverlayTest.KillMeshObj ( )
inline
void StabilityOverlayTest.OnDestroy ( )
inline
void StabilityOverlayTest.OnDrawGizmo ( EditorMarker_CoL  gizmoCoL)
inline
void StabilityOverlayTest.OnGUI ( )
inline
void StabilityOverlayTest.OnInit ( )
inline
void StabilityOverlayTest.onPartEvent ( ConstructionEventType  evt,
Part  p 
)
inline
static void StabilityOverlayTest.onPlayModeChanged ( PlayModeStateChange  state)
inlinestatic
void StabilityOverlayTest.onShipModified ( ShipConstruct  ship)
inline
void StabilityOverlayTest.ResetEquilibriumFloater ( Vector3  noseAxis)
inline
float StabilityOverlayTest.RoundedArcCapMethod ( float  angleStart,
float  angleEnd,
float  angle 
)
inline
void StabilityOverlayTest.Solve ( ShipConstruct  ship,
bool  resetFloater 
)
inline

< run stability test

void StabilityOverlayTest.SpawnMeshObj ( )
inline

< TransparentFX

< TransparentFX

void StabilityOverlayTest.TriangulateMesh ( int  v00,
int  v01,
int  v0,
int  v1,
int[]  tris 
)
inline

< mesh backside starts from the second half of the array

Member Data Documentation

float StabilityOverlayTest.airspeed = 100f
float StabilityOverlayTest.AoA = 0f
float StabilityOverlayTest.arcRange = 120f * Mathf.Deg2Rad
Color StabilityOverlayTest.bgColor1 = new Color(0.3058824f, 0.4901961f, 0.509804f, 1f)
Color StabilityOverlayTest.bgColor2 = new Color(0.227451f, 0.2470588f, 0.2509804f, 1f)
Color StabilityOverlayTest.floaterColor = XKCDColors.GreyBlue
float StabilityOverlayTest.graphScalingBias = 0.1f
Color StabilityOverlayTest.noseAxisColor = XKCDColors.BrightOrange
float StabilityOverlayTest.noseAxisLineLength = 10f
bool StabilityOverlayTest.online = false
int StabilityOverlayTest.pitchSamples = 180
float StabilityOverlayTest.radius = 6f
float StabilityOverlayTest.sampleDistribution = 1f
Color StabilityOverlayTest.stableArcColor = XKCDColors.ElectricLime * 0.5f
Color StabilityOverlayTest.stableEnvColor = XKCDColors.ElectricLime
Color StabilityOverlayTest.torqueColor = XKCDColors.BrightPurple
Color StabilityOverlayTest.unstableArcColor = XKCDColors.KSPNotSoGoodOrange * 0.5f
Color StabilityOverlayTest.unstableEnvColor = XKCDColors.KSPNotSoGoodOrange

The documentation for this class was generated from the following file: