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

Public Member Functions

void spawnEVA ()
 
KerbalEVA spawnEVA (ProtoCrewMember pCrew, Part fromPart, Transform fromAirlock, bool tryAllHatches=false)
 
delegate KerbalEVA SpawnKerbalEVADelegate (ProtoCrewMember pcm)
 

Static Public Member Functions

static KerbalEVA _Spawn (ProtoCrewMember pcm)
 
static bool hatchInsideFairing (Part fromPart)
 Checks if fromPart if inside a fairing that is NOT an interstage fairing, as we don't want to allow EVAs from inside a fairing unless it is an interstage fairing. More...
 
static bool HatchIsObstructed (Part fromPart, Transform fromAirlock)
 
static bool HatchIsObstructedMore (Part fromPart, Transform fromAirlock)
 Same as HatchIsObstructed but raytraces inwards and with a OverlapSphere to catch more cases. More...
 
static KerbalEVA SpawnEVA (Kerbal crew)
 

Public Attributes

bool overrideEVA = false
 

Static Public Attributes

static FlightEVA fetch
 
static SpawnKerbalEVADelegate Spawn = _Spawn
 

Member Function Documentation

static KerbalEVA FlightEVA._Spawn ( ProtoCrewMember  pcm)
inlinestatic
static bool FlightEVA.hatchInsideFairing ( Part  fromPart)
inlinestatic

Checks if fromPart if inside a fairing that is NOT an interstage fairing, as we don't want to allow EVAs from inside a fairing unless it is an interstage fairing.

Parameters
fromPart
Returns
true or false
static bool FlightEVA.HatchIsObstructed ( Part  fromPart,
Transform  fromAirlock 
)
inlinestatic

< Move the start of the check inside the hatch a bit. This covers the case where the hatch is pressed against local scenery (and the hatch has sunk below surface).

static bool FlightEVA.HatchIsObstructedMore ( Part  fromPart,
Transform  fromAirlock 
)
inlinestatic

Same as HatchIsObstructed but raytraces inwards and with a OverlapSphere to catch more cases.

Parameters
fromPart
fromAirlock
Returns
static KerbalEVA FlightEVA.SpawnEVA ( Kerbal  crew)
inlinestatic
void FlightEVA.spawnEVA ( )
inline

< Added for Unity 4 Support CJ

KerbalEVA FlightEVA.spawnEVA ( ProtoCrewMember  pCrew,
Part  fromPart,
Transform  fromAirlock,
bool  tryAllHatches = false 
)
inline

< was probably a double click.

< Try all of the hatches, starting with the default

< check the default hatch

delegate KerbalEVA FlightEVA.SpawnKerbalEVADelegate ( ProtoCrewMember  pcm)

Member Data Documentation

FlightEVA FlightEVA.fetch
static
bool FlightEVA.overrideEVA = false
SpawnKerbalEVADelegate FlightEVA.Spawn = _Spawn
static

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