Difference between revisions of "User:Glyph"
From Kerbal Space Program Wiki
Line 181: | Line 181: | ||
{{Field | {{Field | ||
|type=Vector3d | |type=Vector3d | ||
− | |name=acceleration | + | |name=acceleration |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=altitude | + | |name=altitude |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3 | |type=Vector3 | ||
− | |name=angularMomentum | + | |name=angularMomentum |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3 | |type=Vector3 | ||
− | |name=angularVelocity | + | |name=angularVelocity |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=atmDensity | + | |name=atmDensity |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=atmosphericTemperature | + | |name=atmosphericTemperature |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3d | |type=Vector3d | ||
− | |name=CentrifugalAcc | + | |name=CentrifugalAcc |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3 | |type=Vector3 | ||
− | |name=CoM | + | |name=CoM |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=convectiveCoefficient | + | |name=convectiveCoefficient |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=convectiveMachFlux | + | |name=convectiveMachFlux |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3d | |type=Vector3d | ||
− | |name=CoriolisAcc | + | |name=CoriolisAcc |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=FlightCtrlState | |type=FlightCtrlState | ||
− | |name=ctrlState | + | |name=ctrlState |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=int | |type=int | ||
− | |name=currentStage | + | |name=currentStage |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=bool | |type=bool | ||
− | |name=directSunlight | + | |name=directSunlight |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=distanceToSun | + | |name=distanceToSun |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=dynamicPressurekPa | + | |name=dynamicPressurekPa |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=KerbalEVA | |type=KerbalEVA | ||
− | |name=evaController | + | |name=evaController |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=externalTemperature | + | |name=externalTemperature |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=ConfigNode | |type=ConfigNode | ||
− | |name=flightPlanNode | + | |name=flightPlanNode |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=geeForce | + | |name=geeForce |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=geeForce_immediate | + | |name=geeForce_immediate |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3d | |type=Vector3d | ||
− | |name=gForce | + | |name=gForce |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=bool | |type=bool | ||
− | |name=handlePhysicsStats | + | |name=handlePhysicsStats |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=float | |type=float | ||
− | |name=heightFromSurface | + | |name=heightFromSurface |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=float | |type=float | ||
− | |name=heightFromTerrain | + | |name=heightFromTerrain |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=horizontalSrfSpeed | + | |name=horizontalSrfSpeed |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Guid | |type=Guid | ||
− | |name=id | + | |name=id |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=indicatedAirSpeed | + | |name=indicatedAirSpeed |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=bool | |type=bool | ||
− | |name=Landed | + | |name=Landed |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=string | |type=string | ||
− | |name=landedAt | + | |name=landedAt |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=latitude | + | |name=latitude |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=launchTime | + | |name=launchTime |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=bool | |type=bool | ||
− | |name=loaded | + | |name=loaded |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3 | |type=Vector3 | ||
− | |name=localCoM | + | |name=localCoM |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=longitude | + | |name=longitude |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=mach | + | |name=mach |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=missionTime | + | |name=missionTime |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3 | |type=Vector3 | ||
− | |name=MOI | + | |name=MOI |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=obt_speed | + | |name=obt_speed |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3d | |type=Vector3d | ||
− | |name=obt_velocity | + | |name=obt_velocity |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=FlightInputCallback | |type=FlightInputCallback | ||
− | |name=OnAutopilotUpdate | + | |name=OnAutopilotUpdate |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=FlightInputCallback | |type=FlightInputCallback | ||
− | |name=OnFlyByWire | + | |name=OnFlyByWire |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Callback | |type=Callback | ||
− | |name=OnJustAboutToBeDestroyed | + | |name=OnJustAboutToBeDestroyed |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=FlightInputCallback | |type=FlightInputCallback | ||
− | |name=OnPostAutopilotUpdate | + | |name=OnPostAutopilotUpdate |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=FlightInputCallback | |type=FlightInputCallback | ||
− | |name=OnPreAutopilotUpdate | + | |name=OnPreAutopilotUpdate |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=OrbitDriver | |type=OrbitDriver | ||
− | |name=orbitDriver | + | |name=orbitDriver |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=OrbitRenderer | |type=OrbitRenderer | ||
− | |name=orbitRenderer | + | |name=orbitRenderer |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=OrbitTargeter | |type=OrbitTargeter | ||
− | |name=orbitTargeter | + | |name=orbitTargeter |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=bool | |type=bool | ||
− | |name=packed | + | |name=packed |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=List<Part> | |type=List<Part> | ||
− | |name=parts | + | |name=parts |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=PatchedConicRenderer | |type=PatchedConicRenderer | ||
− | |name=patchedConicRenderer | + | |name=patchedConicRenderer |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=PatchedConicSolver | |type=PatchedConicSolver | ||
− | |name=patchedConicSolver | + | |name=patchedConicSolver |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3d | |type=Vector3d | ||
− | |name=perturbation | + | |name=perturbation |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=pqsAltitude | + | |name=pqsAltitude |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=ProtoVessel | |type=ProtoVessel | ||
− | |name=protoVessel | + | |name=protoVessel |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3 | |type=Vector3 | ||
− | |name=rb_velocity | + | |name=rb_velocity |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=uint | |type=uint | ||
− | |name=referenceTransformId | + | |name=referenceTransformId |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Part | |type=Part | ||
− | |name=rootPart | + | |name=rootPart |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Situations | |type=Situations | ||
− | |name=situation | + | |name=situation |
|desc= | |desc= | ||
}} | }} | ||
Line 481: | Line 481: | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=solarFlux | + | |name=solarFlux |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=specificAcceleration | + | |name=specificAcceleration |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=speed | + | |name=speed |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=speedOfSound | + | |name=speedOfSound |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=bool | |type=bool | ||
− | |name=Splashed | + | |name=Splashed |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3d | |type=Vector3d | ||
− | |name=srf_velocity | + | |name=srf_velocity |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Quaternion | |type=Quaternion | ||
− | |name=srfRelRotation | + | |name=srfRelRotation |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=srfSpeed | + | |name=srfSpeed |
+ | |desc= | ||
+ | }} | ||
+ | {{Field | ||
+ | |type=State | ||
+ | |name=state | ||
|desc= | |desc= | ||
}} | }} | ||
Line 523: | Line 528: | ||
|name=State | |name=State | ||
|desc={ INACTIVE, ACTIVE, DEAD } | |desc={ INACTIVE, ACTIVE, DEAD } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=staticPressurekPa | + | |name=staticPressurekPa |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=ITargetable | |type=ITargetable | ||
− | |name=targetObject | + | |name=targetObject |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=terrainAltitude | + | |name=terrainAltitude |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3 | |type=Vector3 | ||
− | |name=terrainNormal | + | |name=terrainNormal |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Vector3d | |type=Vector3d | ||
− | |name=upAxis | + | |name=upAxis |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=double | |type=double | ||
− | |name=verticalSpeed | + | |name=verticalSpeed |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=string | |type=string | ||
− | |name=vesselName | + | |name=vesselName |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=VesselRanges | |type=VesselRanges | ||
− | |name=vesselRanges | + | |name=vesselRanges |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=Transform | |type=Transform | ||
− | |name=vesselTransform | + | |name=vesselTransform |
|desc= | |desc= | ||
}} | }} | ||
{{Field | {{Field | ||
|type=VesselType | |type=VesselType | ||
− | |name=vesselType | + | |name=vesselType |
|desc= | |desc= | ||
}} | }} |
Revision as of 01:46, 12 October 2015
Contents
Vessel Class
Inherits | Implements |
---|---|
MonoBehaviour |
|
Class attributes: [DefaultMember("Item")]
Properties
The following are public properties available in Glyph.
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. 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.
Signature | Description |
---|---|
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 = false) | |
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) |