Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Attributes | Protected Member Functions | Properties | List of all members
CometVessel Class Reference

Vessel Module for Comets to be used for the work on the visuals that occur with them as they travel the cosmos More...

Inheritance diagram for CometVessel:
VesselModule

Public Attributes

double comaWidth = 10000
 The diameter of the coma of the comet visual (in meters) More...
 
double comaWidthRatio = 10000
 The max diameter of the coma of the comet visual (ratio of nucleus radius) More...
 
uint cometPartId = 0u
 
float fragmentDynamicPressureModifier
 Fragment Dynamic pressure passed by the comet exploded to its comet dragments. More...
 
bool hasName = false
 Has this Comet been assigned a name yet - they only get named when they are tracked More...
 
double ionTailMaxWidthRatio = 0.3
 The max width of the tail of the comet visual at the head of the tail - at the object end of the tail (ratio of comawidth) More...
 
double ionTailWidth = 1
 The width of the ion tail of the comet visual at the head of the tail(in meters) More...
 
int numGeysers
 Number of geysers More...
 
int numNearDustEmitters
 Number of near dust emitters More...
 
bool optimizedCollider
 Flag to check if this comet was created when a comet broke. More...
 
double tailLength = 1000000
 The length of the tail of the comet visual (in meters) More...
 
double tailMaxLengthRatio = 1000000
 The max length of the tail of the comet visual (ratio of comawidth) More...
 
double tailMaxWidthRatio = 1
 The max width of the tail of the comet visual at the head of the tail - at the object end of the tail (ratio of comawidth) More...
 
double tailWidth = 1
 The width of the tail of the comet visual at the head of the tail - at the object end of the tail (in meters) More...
 
string typeName = ""
 
double vfxStartDistance = 1.5d
 The max length of the tail of the comet visual (in meters) More...
 

Protected Member Functions

override void OnAwake ()
 
override void OnStart ()
 
virtual void Update ()
 Updates the visual values that we use for this vessel More...
 
- Protected Member Functions inherited from VesselModule
void Awake ()
 
virtual void OnLoad (ConfigNode node)
 
virtual void OnSave (ConfigNode node)
 
void Start ()
 

Properties

double ComaRadius [get]
 The radius of the coma of the comet visual More...
 
float ComaRadiusScaledSpace [get]
 The radius of the coma of the comet visual More...
 
float ComaWidthScaledSpace [get]
 The diameter of the coma of the comet visual (in scaled space units) More...
 
CometOrbitType CometType [get]
 
float IonTailWidthScaledSpace [get]
 The width of the tail of the comet visual at the head of the tail - at the object end of the tail (in scaled space units) More...
 
float TailLengthScaledSpace [get]
 The length of the tail of the comet visual (in scaled space units) More...
 
float TailWidthScaledSpace [get]
 The width of the tail of the comet visual at the head of the tail - at the object end of the tail (in scaled space units) More...
 
- Properties inherited from VesselModule
BaseFieldList Fields [get]
 
Vessel Vessel [get, set]
 

Additional Inherited Members

- Public Types inherited from VesselModule
enum  Activation {
  Activation.FlightScene = 1, Activation.NonFlightScenes = 2, Activation.LoadedVessels = 4, Activation.UnloadedVessels = 8,
  Activation.Never = 0, Activation.AllScenes = 3, Activation.LoadedOrUnloaded = 12, Activation.Always = 255
}
 
- Public Member Functions inherited from VesselModule
virtual Activation GetActivation ()
 
virtual int GetOrder ()
 
void Load (ConfigNode node)
 
virtual void OnGoOffRails ()
 
virtual void OnGoOnRails ()
 
virtual void OnLoadVessel ()
 
virtual void OnUnloadVessel ()
 
void Save (ConfigNode node)
 
virtual bool ShouldBeActive ()
 
- Protected Attributes inherited from VesselModule
BaseFieldList fields
 
Vessel vessel
 

Detailed Description

Vessel Module for Comets to be used for the work on the visuals that occur with them as they travel the cosmos

Member Function Documentation

override void CometVessel.OnAwake ( )
inlineprotectedvirtual

Reimplemented from VesselModule.

override void CometVessel.OnStart ( )
inlineprotectedvirtual

Reimplemented from VesselModule.

virtual void CometVessel.Update ( )
inlineprotectedvirtual

Updates the visual values that we use for this vessel

Member Data Documentation

double CometVessel.comaWidth = 10000

The diameter of the coma of the comet visual (in meters)

double CometVessel.comaWidthRatio = 10000

The max diameter of the coma of the comet visual (ratio of nucleus radius)

Visual is this width at point closest to Sun

uint CometVessel.cometPartId = 0u
float CometVessel.fragmentDynamicPressureModifier

Fragment Dynamic pressure passed by the comet exploded to its comet dragments.

bool CometVessel.hasName = false

Has this Comet been assigned a name yet - they only get named when they are tracked

double CometVessel.ionTailMaxWidthRatio = 0.3

The max width of the tail of the comet visual at the head of the tail - at the object end of the tail (ratio of comawidth)

Visual is this width at point closest to Sun

double CometVessel.ionTailWidth = 1

The width of the ion tail of the comet visual at the head of the tail(in meters)

int CometVessel.numGeysers

Number of geysers

int CometVessel.numNearDustEmitters

Number of near dust emitters

bool CometVessel.optimizedCollider

Flag to check if this comet was created when a comet broke.

double CometVessel.tailLength = 1000000

The length of the tail of the comet visual (in meters)

double CometVessel.tailMaxLengthRatio = 1000000

The max length of the tail of the comet visual (ratio of comawidth)

Visual is this length at point closest to Sun

double CometVessel.tailMaxWidthRatio = 1

The max width of the tail of the comet visual at the head of the tail - at the object end of the tail (ratio of comawidth)

Visual is this width at point closest to Sun

double CometVessel.tailWidth = 1

The width of the tail of the comet visual at the head of the tail - at the object end of the tail (in meters)

string CometVessel.typeName = ""
double CometVessel.vfxStartDistance = 1.5d

The max length of the tail of the comet visual (in meters)

Visual is this length at point closest to Sun

Property Documentation

double CometVessel.ComaRadius
get

The radius of the coma of the comet visual

float CometVessel.ComaRadiusScaledSpace
get

The radius of the coma of the comet visual

float CometVessel.ComaWidthScaledSpace
get

The diameter of the coma of the comet visual (in scaled space units)

CometOrbitType CometVessel.CometType
get
float CometVessel.IonTailWidthScaledSpace
get

The width of the tail of the comet visual at the head of the tail - at the object end of the tail (in scaled space units)

float CometVessel.TailLengthScaledSpace
get

The length of the tail of the comet visual (in scaled space units)

float CometVessel.TailWidthScaledSpace
get

The width of the tail of the comet visual at the head of the tail - at the object end of the tail (in scaled space units)


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