Difference between revisions of "User:Glyph/sandbox"

From Kerbal Space Program Wiki
Jump to: navigation, search
Line 1: Line 1:
A '''Vessel''' represents a ship, or a piece of debris that was once part of a ship. You can access the vessel that your Part is part of with this.vessel. Particularly useful members are vessel.orbit, which gives your orbit, and vessel.mainBody, which gives CelestialBody whose influence you are currently under.
 
  
 
<!-- Class tables autogenerated by Glyph's kerbal_wiki_pdoc program for KSP 1.04. Using syntax set up for the wiki by N3X15, format from DOCTOOLS (I'm not clear if DOCTOOLS is the script used to generate N3X15's old version of these tables, or some mediawiki thing). -->
 
<!-- Class tables autogenerated by Glyph's kerbal_wiki_pdoc program for KSP 1.04. Using syntax set up for the wiki by N3X15, format from DOCTOOLS (I'm not clear if DOCTOOLS is the script used to generate N3X15's old version of these tables, or some mediawiki thing). -->
Line 6: Line 5:
 
   |implements=<ul><li>{{Type|IShipconstruct}}</li><li>{{Type|ITargetable}}</li><li>{{Type|IDiscoverable}}</li></ul>
 
   |implements=<ul><li>{{Type|IShipconstruct}}</li><li>{{Type|ITargetable}}</li><li>{{Type|IDiscoverable}}</li></ul>
 
   |name=Vessel
 
   |name=Vessel
   |summary=Vessels define individual ships in flight. They work essentially as a header for the set of parts that make up the ship.
+
   |summary=Class attributes: [DefaultMember("Item")]
 
}}
 
}}
  
Line 78: Line 77:
 
   |desc=
 
   |desc=
 
   |hasget=1
 
   |hasget=1
   |hasset=True if the vessel is the active vessel.
+
   |hasset=
 
}}
 
}}
 
{{Property
 
{{Property
Line 97: Line 96:
 
   |type=bool
 
   |type=bool
 
   |name=isEVA
 
   |name=isEVA
   |desc=True if the vessel is an EVA kerbal.
+
   |desc=
 
   |hasget=1
 
   |hasget=1
 
   |hasset=
 
   |hasset=
Line 127: Line 126:
 
   |desc=
 
   |desc=
 
   |hasget=1
 
   |hasget=1
   |hasset=The reference body of the vessel.
+
   |hasset=
 
}}
 
}}
 
{{Property
 
{{Property
Line 153: Line 152:
 
   |type=Transform
 
   |type=Transform
 
   |name=ReferenceTransform
 
   |name=ReferenceTransform
   |desc=The reference transform is used to define the orientation of a vessel for controls and gauges. It defines which way is 'up' or 'forward' or which way pitch rotates, for instance. Read only. Use SetReferenceTransform to set. Defaults to vessel transform if no other transform is set.
+
   |desc=
 
   |hasget=1
 
   |hasget=1
 
   |hasset=
 
   |hasset=
Line 184: Line 183:
 
   |type=Vector3d
 
   |type=Vector3d
 
   |name=acceleration
 
   |name=acceleration
   |desc=The current acceleration vector of the vessel.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
 
   |type=double
 
   |type=double
 
   |name=altitude
 
   |name=altitude
   |desc=Height above the surface of the reference body, including liquid bodies.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 199: Line 198:
 
   |type=Vector3
 
   |type=Vector3
 
   |name=angularVelocity
 
   |name=angularVelocity
   |desc=The angular velocity vector of the vessel.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 219: Line 218:
 
   |type=Vector3
 
   |type=Vector3
 
   |name=CoM
 
   |name=CoM
   |desc=The vector corresponding to the vessel's center of mass, relative to the vessel origin.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 239: Line 238:
 
   |type=FlightCtrlState
 
   |type=FlightCtrlState
 
   |name=ctrlState
 
   |name=ctrlState
   |desc=The vessel's flight control state object, used for accessing and modifying user and fly-by-wire input.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
 
   |type=int
 
   |type=int
 
   |name=currentStage
 
   |name=currentStage
   |desc=Current stage of the vessel.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 279: Line 278:
 
   |type=double
 
   |type=double
 
   |name=geeForce
 
   |name=geeForce
   |desc=The current magnitude of gravity, in meters per second squared.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 299: Line 298:
 
   |type=float
 
   |type=float
 
   |name=heightFromSurface
 
   |name=heightFromSurface
   |desc=The height above the surface of the reference body, including liquid bodies.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 314: Line 313:
 
   |type=Guid
 
   |type=Guid
 
   |name=id
 
   |name=id
   |desc=Unique identifier for each vessel.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 324: Line 323:
 
   |type=bool
 
   |type=bool
 
   |name=Landed
 
   |name=Landed
   |desc=True if the vessel has landed.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 344: Line 343:
 
   |type=bool
 
   |type=bool
 
   |name=loaded
 
   |name=loaded
   |desc=True if the vessel has loaded.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
 
   |type=Vector3
 
   |type=Vector3
 
   |name=localCoM
 
   |name=localCoM
   |desc=This is used for persistence purposes. Use findLocalCenterOfMass() if you just want the center of mass.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 379: Line 378:
 
   |type=Vector3d
 
   |type=Vector3d
 
   |name=obt_velocity
 
   |name=obt_velocity
   |desc=The orbital velocity vector of the vessel, relative to the reference body.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 459: Line 458:
 
   |type=Vector3
 
   |type=Vector3
 
   |name=rb_velocity
 
   |name=rb_velocity
   |desc=The current velocity of the Unity physics rigidbody.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 469: Line 468:
 
   |type=Part
 
   |type=Part
 
   |name=rootPart
 
   |name=rootPart
   |desc=The root part of the vessel.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 489: Line 488:
 
   |type=double
 
   |type=double
 
   |name=specificAcceleration
 
   |name=specificAcceleration
   |desc=Specific acceleration is the vessel's potential acceleration per unit of throttle. Used to estimate burn times and such. NOTE: this value is calculated based on smoothed acceleration, so it isn't completely accurate. It will also change as the vessel's mass is reduced as fuel burns away. (it does get pretty accurate after burning for a few seconds)
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 514: Line 513:
 
   |type=Quaternion
 
   |type=Quaternion
 
   |name=srfRelRotation
 
   |name=srfRelRotation
   |desc=The Quaternion corresponding to the vessel's rotation, relative to the surface of reference body.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 534: Line 533:
 
   |type=double
 
   |type=double
 
   |name=staticPressurekPa
 
   |name=staticPressurekPa
   |desc=The current atmospheric pressure of this vessel.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 544: Line 543:
 
   |type=double
 
   |type=double
 
   |name=terrainAltitude
 
   |name=terrainAltitude
   |desc=The height of the terrain, relative to the center of the reference body.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
 
   |type=Vector3
 
   |type=Vector3
 
   |name=terrainNormal
 
   |name=terrainNormal
   |desc=The vector perpendicular to the terrain.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
 
   |type=Vector3d
 
   |type=Vector3d
 
   |name=upAxis
 
   |name=upAxis
   |desc=Vector corresponding to the vessel's up facing direction.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
 
   |type=double
 
   |type=double
 
   |name=verticalSpeed
 
   |name=verticalSpeed
   |desc=The vertical speed of the vessel, relative to the surface of the reference body.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
 
   |type=string
 
   |type=string
 
   |name=vesselName
 
   |name=vesselName
   |desc=Name identifier of the vessel.
+
   |desc=
 
}}
 
}}
 
{{Field
 
{{Field
Line 584: Line 583:
  
 
{{MethodsStart}}
 
{{MethodsStart}}
 +
{{Method
 +
  |name=Vessel
 +
  |args=
 +
  |desc=
 +
}}
 
{{Method
 
{{Method
 
   |returntype=void
 
   |returntype=void
Line 609: Line 613:
 
   |returndesc=
 
   |returndesc=
 
   |name=ChangeWorldVelocity
 
   |name=ChangeWorldVelocity
   |args=Vector3d velOffset
+
   |args={{arg|Vector3d|velOffset}}
   |desc=change the worldspace velocity of this vessel
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 631: Line 635:
 
   |name=checkVisibility
 
   |name=checkVisibility
 
   |args=
 
   |args=
   |desc=Returns true if this vessel is within the visible range of any commandable (focusable) vessel, false otherwise.
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 644: Line 648:
 
   |returndesc=
 
   |returndesc=
 
   |name=ContainsCollider
 
   |name=ContainsCollider
   |args=Collider c
+
   |args={{arg|Collider|c}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 701: Line 705:
 
   |name=findLocalCenterOfMass
 
   |name=findLocalCenterOfMass
 
   |args=
 
   |args=
   |desc=Finds the local center of mass recursively from the given ship part.
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 721: Line 725:
 
   |returndesc=
 
   |returndesc=
 
   |name=findLocalMOI
 
   |name=findLocalMOI
   |args=Vector3 worldCoM
+
   |args={{arg|Vector3|worldCoM}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 736: Line 740:
 
   |name=findWorldCenterOfMass
 
   |name=findWorldCenterOfMass
 
   |args=
 
   |args=
   |desc=Finds the world center of mass recursively from the given ship part.
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 749: Line 753:
 
   |returndesc=
 
   |returndesc=
 
   |name=GetActiveResource
 
   |name=GetActiveResource
   |args=PartResourceDefinition def
+
   |args={{arg|PartResourceDefinition|def}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 792: Line 796:
 
   |name=GetHeightFromTerrain
 
   |name=GetHeightFromTerrain
 
   |args=
 
   |args=
   |desc=The vessel's altitude above the reference body's terrain, not including liquid bodies.
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 848: Line 852:
 
   |name=GetTotalMass
 
   |name=GetTotalMass
 
   |args=
 
   |args=
   |desc=Get the sum of the mass of all (physical) parts on this vessel
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 869: Line 873:
 
   |name=GetVesselCrew
 
   |name=GetVesselCrew
 
   |args=
 
   |args=
   |desc=Returns a list of ProtoCrewMembers corresponding to each kerbal on board. ProtoCrewMember contains many fields relating to the kerbals stats such as name, courage, etc.
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 876: Line 880:
 
   |name=GetWorldPos3D
 
   |name=GetWorldPos3D
 
   |args=
 
   |args=
   |desc=Get a double precision vector for the vessel's worldspace position (for when transform.position isn't accurate enough)
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 883: Line 887:
 
   |name=GoOffRails
 
   |name=GoOffRails
 
   |args=
 
   |args=
   |desc=puts the ship back into a simulated orbit and reenables physics
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 890: Line 894:
 
   |name=GoOnRails
 
   |name=GoOnRails
 
   |args=
 
   |args=
   |desc=disables physics and puts the ship into a propagated orbit
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 903: Line 907:
 
   |returndesc=
 
   |returndesc=
 
   |name=Initialize
 
   |name=Initialize
   |args=bool fromShipAssembly = false
+
   |args={{arg|bool|fromShipAssembly}}
   |desc=Initialize is used in cases where the Vessel component is added to a ship that already exists.
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 952: Line 956:
 
   |returndesc=
 
   |returndesc=
 
   |name=OnLoadFlightState
 
   |name=OnLoadFlightState
   |args=Dictionary&#x3008;string, KSPParseable&#x3009; dataPool
+
   |args={{arg|Dictionary&#x3008;string, KSPParseable&#x3009;|dataPool}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 959: Line 963:
 
   |returndesc=
 
   |returndesc=
 
   |name=OnSaveFlightState
 
   |name=OnSaveFlightState
   |args=Dictionary&#x3008;string, KSPParseable&#x3009; dataPool
+
   |args={{arg|Dictionary&#x3008;string, KSPParseable&#x3009;|dataPool}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 1,064: Line 1,068:
 
   |returndesc=
 
   |returndesc=
 
   |name=SetActiveInternalPart
 
   |name=SetActiveInternalPart
   |args=List&#x3008;Part&#x3009; visibleParts
+
   |args={{arg|List&#x3008;Part&#x3009;|visibleParts}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 1,071: Line 1,075:
 
   |returndesc=
 
   |returndesc=
 
   |name=SetActiveInternalPart
 
   |name=SetActiveInternalPart
   |args=Part visiblePart
+
   |args={{arg|Part|visiblePart}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 1,078: Line 1,082:
 
   |returndesc=
 
   |returndesc=
 
   |name=SetPosition
 
   |name=SetPosition
   |args=Vector3 position
+
   |args={{arg|Vector3|position}}
   |desc=Sets the worldspace position of this vessel, and all its parts
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 1,085: Line 1,089:
 
   |returndesc=
 
   |returndesc=
 
   |name=SetPosition
 
   |name=SetPosition
   |args=Vector3 position, bool usePristineCoords
+
   |args={{arg|Vector3|position}},{{arg|bool|usePristineCoords}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 1,092: Line 1,096:
 
   |returndesc=
 
   |returndesc=
 
   |name=SetReferenceTransform
 
   |name=SetReferenceTransform
   |args=Part p
+
   |args={{arg|Part|p}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 1,099: Line 1,103:
 
   |returndesc=
 
   |returndesc=
 
   |name=SetRotation
 
   |name=SetRotation
   |args=Quaternion rotation
+
   |args={{arg|Quaternion|rotation}}
   |desc=Sets the worldspace rotation of this vessel, and all its parts
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 1,106: Line 1,110:
 
   |returndesc=
 
   |returndesc=
 
   |name=SetWorldVelocity
 
   |name=SetWorldVelocity
   |args=Vector3d vel
+
   |args={{arg|Vector3d|vel}}
   |desc=set the absolute world velocity of this vessel
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 1,120: Line 1,124:
 
   |returndesc=
 
   |returndesc=
 
   |name=StartFromBackup
 
   |name=StartFromBackup
   |args=ProtoVessel pv
+
   |args={{arg|ProtoVessel|pv}}
   |desc=Start from backup is used when the scene is being resumed, and the Vessel component is added before the parts themselves. Note that this method won't load the parts. It only creates the vessel object. To load parts, use the Vessel.Load() method.
+
   |desc=
 
}}
 
}}
 
{{Method
 
{{Method
Line 1,127: Line 1,131:
 
   |returndesc=
 
   |returndesc=
 
   |name=Translate
 
   |name=Translate
   |args=Vector3 offset
+
   |args={{arg|Vector3|offset}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 1,141: Line 1,145:
 
   |returndesc=
 
   |returndesc=
 
   |name=AutoRename
 
   |name=AutoRename
   |args=Vessel v, string baseName
+
   |args={{arg|Vessel|v}},{{arg|string|baseName}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 1,148: Line 1,152:
 
   |returndesc=
 
   |returndesc=
 
   |name=GetLandedAtString
 
   |name=GetLandedAtString
   |args=string landedAt
+
   |args={{arg|string|landedAt}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 1,155: Line 1,159:
 
   |returndesc=
 
   |returndesc=
 
   |name=GetMETString
 
   |name=GetMETString
   |args=Vessel v
+
   |args={{arg|Vessel|v}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 1,162: Line 1,166:
 
   |returndesc=
 
   |returndesc=
 
   |name=GetSituationString
 
   |name=GetSituationString
   |args=Vessel v
+
   |args={{arg|Vessel|v}}
 
   |desc=
 
   |desc=
 
}}
 
}}
Line 1,169: Line 1,173:
 
   |returndesc=
 
   |returndesc=
 
   |name=IsValidVesselName
 
   |name=IsValidVesselName
   |args=string name
+
   |args={{arg|string|name}}
 
   |desc=
 
   |desc=
 
}}
 
}}
 
{{MethodsEnd}}
 
{{MethodsEnd}}
 +
 +
[[Category:Community API Documentation]]

Revision as of 17:27, 12 October 2015

Vessel Class

Inherits Implements
MonoBehaviour
  • IShipconstruct
  • ITargetable
  • IDiscoverable

Class attributes: [DefaultMember("Item")]

Properties

The following are public properties available in Glyph/sandbox.

Signature Description
ActionGroupList ActionGroups { get; }
VesselAutopilot Autopilot { get; }
Vector3 CurrentCoM { get; }
DiscoveryInfo DiscoveryInfo { get; }
float distanceLandedPackThreshold { get; set; } Has attribute [Obsolete("Use Vessel.vesselRanges instead")]
float distanceLandedUnpackThreshold { get; set; } Has attribute [Obsolete("Use Vessel.vesselRanges instead")]
float distancePackThreshold { get; set; } Has attribute [Obsolete("Use Vessel.vesselRanges instead")]
float distanceUnpackThreshold { get; set; } Has attribute [Obsolete("Use Vessel.vesselRanges instead")]
bool HoldPhysics { get; }
bool isActiveVessel { get; }
bool isCommandable { get; }
bool IsControllable { get; }
bool isEVA { get; }
bool isPersistent { get; set; }
bool IsRecoverable { get; }
bool LandedOrSplashed { get; }
CelestialBody mainBody { get; }
Orbit orbit { get; }
List〈Part〉 Parts { get; }
bool PatchedConicsAttached { get; }
Transform ReferenceTransform { get; }
VesselValues VesselValues { get; }
static float loadDistance { get; set; } Has attribute [Obsolete("Use Vessel.vesselRanges instead")]
static float unloadDistance { get; set; } Has attribute [Obsolete("Use Vessel.vesselRanges instead")]

Fields

The following is a list of publically-accessible fields in Glyph/sandbox. This includes protected items, which can be accessed by subclasses.

Signature Description
Vector3d acceleration
double altitude
Vector3 angularMomentum
Vector3 angularVelocity
double atmDensity
double atmosphericTemperature
Vector3d CentrifugalAcc
Vector3 CoM
double convectiveCoefficient
double convectiveMachFlux
Vector3d CoriolisAcc
FlightCtrlState ctrlState
int currentStage
bool directSunlight
double distanceToSun
double dynamicPressurekPa
KerbalEVA evaController
double externalTemperature
ConfigNode flightPlanNode
double geeForce
double geeForce_immediate
Vector3d gForce
bool handlePhysicsStats
float heightFromSurface
float heightFromTerrain
double horizontalSrfSpeed
Guid id
double indicatedAirSpeed
bool Landed
string landedAt
double latitude
double launchTime
bool loaded
Vector3 localCoM
double longitude
double mach
double missionTime
Vector3 MOI
double obt_speed
Vector3d obt_velocity
FlightInputCallback OnAutopilotUpdate
FlightInputCallback OnFlyByWire
Callback OnJustAboutToBeDestroyed
FlightInputCallback OnPostAutopilotUpdate
FlightInputCallback OnPreAutopilotUpdate
OrbitDriver orbitDriver
OrbitRenderer orbitRenderer
OrbitTargeter orbitTargeter
bool packed
List〈Part〉 parts
PatchedConicRenderer patchedConicRenderer
PatchedConicSolver patchedConicSolver
Vector3d perturbation
double pqsAltitude
ProtoVessel protoVessel
Vector3 rb_velocity
uint referenceTransformId
Part rootPart
Situations situation
enum Situations { LANDED, SPLASHED, PRELAUNCH, FLYING, SUB_ORBITAL, ORBITING, ESCAPING, DOCKED }
double solarFlux
double specificAcceleration
double speed
double speedOfSound
bool Splashed
Vector3d srf_velocity
Quaternion srfRelRotation
double srfSpeed
State state
enum State { INACTIVE, ACTIVE, DEAD }
double staticPressurekPa
ITargetable targetObject
double terrainAltitude
Vector3 terrainNormal
Vector3d upAxis
double verticalSpeed
string vesselName
VesselRanges vesselRanges
Transform vesselTransform
VesselType vesselType

Methods

The following are methods included in Glyph/sandbox.

Signature Description
{{{returntype}}} Vessel()
void AttachPatchedConicsSolver()
ProtoVessel BackupVessel()
void CalculatePhysicsStats()
void ChangeWorldVelocity(Vector3d velOffset)
bool checkLanded()
bool checkSplashed()
bool checkVisibility()
void ClearStaging()
bool ContainsCollider(Collider c)
void DespawnCrew()
void DestroyVesselComponents()
void DetachPatchedConicsSolver()
void Die()
void FallBackReferenceTransform()
void FeedInputFeed()
VesselType FindDefaultVesselType()
Vector3 findLocalCenterOfMass()
Vector3 findLocalCenterOfPressure()
Vector3 findLocalMOI()
Vector3 findLocalMOI(Vector3 worldCoM)
List〈T〉 FindPartModulesImplementing〈T〉()
Vector3 findWorldCenterOfMass()
List〈Part〉 GetActiveParts()
ActiveResource GetActiveResource(PartResourceDefinition def)
List〈ActiveResource〉 GetActiveResources()
int GetCrewCapacity()
int GetCrewCount()
Vector3 GetFwdVector()
float GetHeightFromSurface()
float GetHeightFromTerrain()
string GetName()
Vector3 GetObtVelocity()
Orbit GetOrbit()
OrbitDriver GetOrbitDriver()
Part GetReferenceTransformPart()
Vector3 GetSrfVelocity()
VesselTargetModes GetTargetingMode()
float GetTotalMass()
Transform GetTransform()
Vessel GetVessel()
List〈ProtoCrewMember〉 GetVesselCrew()
Vector3d GetWorldPos3D()
void GoOffRails()
void GoOnRails()
bool HasControlSources()
bool Initialize(bool fromShipAssembly)
ClearToSaveStatus IsClearToSave()
void Load() Has attribute [ContextMenu("Load")]
void MakeActive()
void MakeInactive()
void MurderCrew()
void OnDestroy()
void OnLoadFlightState(Dictionary〈string, KSPParseable〉 dataPool)
void OnSaveFlightState(Dictionary〈string, KSPParseable〉 dataPool)
double PQSAltitude()
void printCollisions() Has attribute [ContextMenu("Print All Collisions")]
void printGroundContacts() Has attribute [ContextMenu("Print Ground Contacts")]
void RenameVessel() Has attribute [ContextMenu("Rename Vessel")]
void ResetCollisionIgnores() Has attribute [ContextMenu("Reset Collision Ignores")]
void ResumeStaging()
void ResumeTarget()
double RevealAltitude()
float RevealMass()
string RevealName()
string RevealSituationString()
double RevealSpeed()
string RevealType()
void SetActiveInternalPart()
void SetActiveInternalPart(List〈Part〉 visibleParts)
void SetActiveInternalPart(Part visiblePart)
void SetPosition(Vector3 position)
void SetPosition(Vector3 position,bool usePristineCoords)
void SetReferenceTransform(Part p)
void SetRotation(Quaternion rotation)
void SetWorldVelocity(Vector3d vel)
void SpawnCrew()
void StartFromBackup(ProtoVessel pv)
void Translate(Vector3 offset)
void Unload() Has attribute [ContextMenu("Unload")]
static string AutoRename(Vessel v,string baseName)
static string GetLandedAtString(string landedAt)
static string GetMETString(Vessel v)
static string GetSituationString(Vessel v)
static bool IsValidVesselName(string name)