Difference between revisions of "API:Part"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (-underscores;)
(Link to API reference for class Part)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{class
+
<!-- Class tables autogenerated against KSP 1.04 by Glyph's kerbal_wiki_pdoc program. -->
|name=Part
+
{{Class
|summary=A Part is the C# object representing a single part on a vessel. You can subclass Part, creating a new type of part that users can place on their ships. The C# class that controls a part is specified in that part's "part.cfg" file by the line "module = <Part subclass>" where <Part subclass> is the name of your new Part subclass. You can also create PartModules, which add to the behavior of an existing part. From within a PartModule, access the Part you are attached to via the "part" field.
+
  |inherits={{Type|MonoBehaviour}}
 +
  |implements=<ul></ul>
 +
  |name=Part
 +
  |summary=A '''Part''' is the [https://kerbalspaceprogram.com/api/class_part.html C# object representing a single part on a vessel]. You can subclass Part, creating a new type of part that users can place on their ships. The C# class that controls a part is specified in that part's "part.cfg" file by the line "module = <Part subclass>" where <Part subclass> is the name of your new Part subclass. You can also create PartModules, which add to the behavior of an existing part. From within a PartModule, access the Part you are attached to via the "part" field.
  
 
If you build a plugin by subclassing Part, you will want to override some of the Part methods. See [[API:Part class overrides]].
 
If you build a plugin by subclassing Part, you will want to override some of the Part methods. See [[API:Part class overrides]].
Line 7: Line 10:
 
Below are some of the interesting members of the Part class. Note that the list of members is far from complete.
 
Below are some of the interesting members of the Part class. Note that the list of members is far from complete.
 
}}
 
}}
{{PropertiesStart}}
+
{{Properties|properties=
 
{{Property
 
{{Property
|type=BaseEventList
+
  |type=BaseActionList
|name=Events
+
  |name=Actions
|hasget=1
+
  |desc=?
|desc=A list of the events that the Part will respond to. For example, landing legs deploy in response to certain events.
+
  |hasget=1
 +
  |hasset=
 
}}
 
}}
 
{{Property
 
{{Property
|type=bool
+
  |type=int
|name=isAttached
+
  |name=ClassID
|hasget=1
+
  |desc=?
|hasset=1
+
  |hasget=1
|desc=
+
  |hasset=
 
}}
 
}}
 
{{Property
 
{{Property
|type=bool
+
  |type=string
|name=isAttached
+
  |name=ClassName
|hasget=1
+
  |desc=?
|hasset=1
+
  |hasget=1
|desc=
+
  |hasset=
 
}}
 
}}
 
{{Property
 
{{Property
|type=bool
+
  |type=DragCubeList
|name=isControllable
+
  |name=DragCubes
|hasget=1
+
  |desc=?
|desc=
+
  |hasget=1
 +
  |hasset=
 
}}
 
}}
 
{{Property
 
{{Property
|type=Orbit
+
  |type=EffectList
|name=orbit
+
  |name=Effects
|hasget=1
+
  |desc=?
|desc=Don't use this!! Use vessel.orbit instead.
+
  |hasget=1
 +
  |hasset=
 
}}
 
}}
 
{{Property
 
{{Property
|type=UnityEngine.RigidBody
+
  |type=BaseEventList
|name=rigidbody
+
  |name=Events
|hasget=1
+
  |desc=A list of the events that the Part will respond to. For example, landing legs deploy in response to certain events.
|desc=This object lets you do physics to your part: for example, apply forces to it. Check out the Unity documentation on RigidBody.  
+
  |hasget=1
 +
  |hasset=
 
}}
 
}}
 
{{Property
 
{{Property
|type=PartStates
+
  |type=BaseFieldList
|name=state
+
  |name=Fields
|hasget=1
+
  |desc=?
|desc=Whether the Part is IDLE (not activated yet), ACTIVATED (e.g., an activated engine), DEACTIVATED, or DEAD.
+
  |hasget=1
 +
  |hasset=
 
}}
 
}}
{{PropertiesEnd}}
+
{{Property
{{FieldsStart}}
+
  |type=bool
{{FieldTemplate
+
  |name=hasStagingIcon
|type=List
+
  |desc=?
|templateType=Part
+
  |hasget=1
|name=children
+
  |hasset=
|desc=A list of all the Parts attached to this Part (except this Part's parent, i.e., the part this part was attached to).
+
}}
 +
{{Property
 +
  |type=bool
 +
  |name=isAttached
 +
  |desc=?
 +
  |hasget=1
 +
  |hasset=1
 +
}}
 +
{{Property
 +
  |type=bool
 +
  |name=isConnected
 +
  |desc=? Has attribute [Obsolete("for 0.14 support, seriously it's not working anynmore")]
 +
  |hasget=1
 +
  |hasset=1
 +
}}
 +
{{Property
 +
  |type=bool
 +
  |name=isControllable
 +
  |desc=?
 +
  |hasget=1
 +
  |hasset=
 +
}}
 +
{{Property
 +
  |type=bool
 +
  |name=Landed
 +
  |desc=?
 +
  |hasget=1
 +
  |hasset=
 +
}}
 +
{{Property
 +
  |type=Part
 +
  |name=localRoot
 +
  |desc=?
 +
  |hasget=1
 +
  |hasset=
 +
}}
 +
{{Property
 +
  |type=PartModuleList
 +
  |name=Modules
 +
  |desc=All the PartModules which this part contains. These can be defined as MODULE nodes in config files, or added programatically.
 +
  |hasget=1
 +
  |hasset=
 +
}}
 +
{{Property
 +
  |type=Orbit
 +
  |name=orbit
 +
  |desc=Don't use this!! Use vessel.orbit instead.
 +
  |hasget=1
 +
  |hasset=
 +
}}
 +
{{Property
 +
  |type=PartValues
 +
  |name=PartValues
 +
  |desc=?
 +
  |hasget=1
 +
  |hasset=
 +
}}
 +
{{Property
 +
  |type=PartResourceList
 +
  |name=Resources
 +
  |desc=?
 +
  |hasget=1
 +
  |hasset=
 +
}}
 +
{{Property
 +
  |type=Rigidbody
 +
  |name=Rigidbody
 +
  |desc=This object lets you do physics to your part: for example, apply forces to it. Check out the Unity documentation on [http://docs.unity3d.com/ScriptReference/Rigidbody.html RigidBody].
 +
  |hasget=1
 +
  |hasset=
 +
}}
 +
{{Property
 +
  |type=bool
 +
  |name=ShieldedFromAirstream
 +
  |desc=?
 +
  |hasget=1
 +
  |hasset=1
 +
}}
 +
{{Property
 +
  |type=bool
 +
  |name=Splashed
 +
  |desc=?
 +
  |hasget=1
 +
  |hasset=
 +
}}
 +
{{Property
 +
  |type=PartStates
 +
  |name=State
 +
  |desc=?
 +
  |hasget=1
 +
  |hasset=
 +
}}
 +
{{Property
 +
  |type=Vector3
 +
  |name=WCoM
 +
  |desc=?
 +
  |hasget=1
 +
  |hasset=
 +
}}
 +
}}
 +
{{Fields|
 +
{{Field
 +
  |type=bool
 +
  |name=ActivatesEvenIfDisconnected
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=aerodynamicArea
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Transform
 +
  |name=airlock
 +
  |desc=The transform which gives the location of the airlock. This is used to determine where kerbals can enter the craft, and where they spawn on going on EVA.
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=angularDrag
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=atmDensity
 +
  |desc=The current atmospheric density (air pressure) around the part in kg/m³.
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=attached
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=PartJoint
 +
  |name=attachJoint
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=AttachNodeMethod
 +
  |name=attachMethod
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=AttachModes
 +
  |name=attachMode
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=List&#x3008;AttachNode&#x3009;
 +
  |name=attachNodes
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=AttachRules
 +
  |name=attachRules
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=attPos
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=attPos0
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Quaternion
 +
  |name=attRotation
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Quaternion
 +
  |name=attRotation0
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=bodyLiftLocalPosition
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=bodyLiftLocalVector
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=bodyLiftMultiplier
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=bodyLiftScalar
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=breakingForce
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=breakingTorque
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=buoyancy
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=CenterOfBuoyancy
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=List&#x3008;Part&#x3009;
 +
  |name=children
 +
  |desc=A list of all the Parts attached to this Part (except this Part's parent, i.e., the part this part was attached to).
 +
}}
 +
{{Field
 +
  |type=int
 +
  |name=childStageOffset
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Collider
 +
  |name=collider
 +
  |desc=The part's [http://docs.unity3d.com/ScriptReference/Collider.html collider]. This is a simplified part mesh used for physics calculations in collisions.
 +
}}
 +
{{Field
 +
  |type=CollisionEnhancer
 +
  |name=collisionEnhancer
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=CoLOffset
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=static
 +
  |name=Color defaultHighlightNone
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=static
 +
  |name=Color defaultHighlightPart
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=CoMOffset
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=connected
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=CoPOffset
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=uint
 +
  |name=craftID
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=crashTolerance
 +
  |desc=How resilient this part is to exploding during collisions.
 +
}}
 +
{{Field
 +
  |type=int
 +
  |name=CrewCapacity
 +
  |desc=How many kerbals this part can hold.
 +
}}
 +
{{Field
 +
  |type=List&#x3008;Collider&#x3009;
 +
  |name=currentCollisions
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=string
 +
  |name=customPartData
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=int
 +
  |name=defaultInverseStage
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=DragModel
 +
  |name=dragModel
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=dragReferenceVector
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=dragScalar
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=dragVector
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=dragVectorDir
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=dragVectorDirLocal
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=dragVectorMag
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=dragVectorSqrMag
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=dynamicPressurekPa
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Part
 +
  |name=editorCollision
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=List&#x3008;Part&#x3009;
 +
  |name=editorLinks
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=emissiveConstant
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=explosionPotential
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=exposedArea
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=T
 +
  |name=FindChildPart&#x3008;T&#x3009;() where T : Part
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=T
 +
  |name=FindChildPart&#x3008;T&#x3009;(bool recursive) where T : Part
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=T[]
 +
  |name=FindChildParts&#x3008;T&#x3009;() where T : Part
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=T[]
 +
  |name=FindChildParts&#x3008;T&#x3009;(bool recursive) where T : Part
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=T
 +
  |name=FindModelComponent&#x3008;T&#x3009;() where T : Component
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=T
 +
  |name=FindModelComponent&#x3008;T&#x3009;(string childName) where T : Component
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=T[]
 +
  |name=FindModelComponents&#x3008;T&#x3009;() where T : Component
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=T[]
 +
  |name=FindModelComponents&#x3008;T&#x3009;(string childName) where T : Component
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=string
 +
  |name=flagURL
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=uint
 +
  |name=flightID
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=frozen
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=fuelCrossFeed
 +
  |desc=Whether fuel can be drawn through this part. Decouplers usually block fuel flow between stages for example.
 +
}}
 +
{{Field
 +
  |type=List&#x3008;Part&#x3009;
 +
  |name=fuelLookupTargets
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=List&#x3008;FXGroup&#x3009;
 +
  |name=fxGroups
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=GroundContact
 +
  |desc=Whether this part is currently in contact with the solid surface of a CelestialBody.
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=hasHeiarchyModel
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=hasLiftModule
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=heatConductivity
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=heatConvectiveConstant
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Color
 +
  |name=highlightColor
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=global::HighlightingSystem.Highlighter
 +
  |name=highlighter
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=HighlightType
 +
  |name=highlightType
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=string
 +
  |name=initialVesselName
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=int
 +
  |name=inStageIndex
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=InternalModel
 +
  |name=internalModel
 +
  |desc=The interior (IVA) model for this part.
 +
}}
 +
{{Field
 +
  |type=string
 +
  |name=InternalModelName
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=int
 +
  |name=inverseStage
 +
  |desc=The stage in which this Part will activate.
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=isClone
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=isControlSource
 +
  |desc=Whether this is capable of being a control source, i.e. whether it has "Control from here" on its right-click menu.
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=isMirrored
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=isPersistent
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=uint
 +
  |name=lastFuelRequestId
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=uint
 +
  |name=launchID
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=machNumber
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=int
 +
  |name=manualStageOffset
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=mass
 +
  |desc=The mass of this Part in metric tons (t).
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=maximum_drag
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=maxTemp
 +
  |desc=The temperature at which this Part will explode.
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=minimum_drag
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=mirrorAxis
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=mirrorRefAxis
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=mirrorVector
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=uint
 +
  |name=missionID
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=string
 +
  |name=NoCrossFeedNodeKey
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Callback
 +
  |name=OnEditorAttach
 +
  |desc=Add your own function to this Callback to have it called when this Part is attached to another part in the VAB. The Part object is created when the user clicks on a part in the VAB part selection menu. When that happens, you can set up this Callback to have something happen when the part gets attached to the ship.
 +
}}
 +
{{Field
 +
  |type=Callback
 +
  |name=OnEditorDestroy
 +
  |desc=Like onEditorAttach, but the Callback gets invoked when the part is deleted in the VAB.
 +
}}
 +
{{Field
 +
  |type=Callback
 +
  |name=OnEditorDetach
 +
  |desc=Like onEditorAttach, but the Callback gets invoked when the part is pulled off the ship in the VAB.
 +
}}
 +
{{Field
 +
  |type=Callback
 +
  |name=OnJustAboutToBeDestroyed
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=orgPos
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Quaternion
 +
  |name=orgRot
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=int
 +
  |name=originalStage
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=packed
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Part
 +
  |name=parent
 +
  |desc=The Part that this Part is attached to.
 +
}}
 +
{{Field
 +
  |type=PartBuoyancy
 +
  |name=partBuoyancy
 +
  |desc=How floaty this part is in liquids.
 +
}}
 +
{{Field
 +
  |type=AvailablePart
 +
  |name=partInfo
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=string
 +
  |name=partName
 +
  |desc=The human-readable name of this part, e.g. "PPD-10 Hitchhiker Storage Container" for the crewCabin.
 +
}}
 +
{{Field
 +
  |type=Transform
 +
  |name=partTransform
 +
  |desc=This part's [http://docs.unity3d.com/ScriptReference/Transform.html transform]. Transforms store a GameObject's position, rotation and scaling.
 +
}}
 +
{{Field
 +
  |type=PhysicalSignificance
 +
  |name=physicalSignificance
 +
  |desc=Some parts have no physics: that is, their masses and drags don't actually get added to the ship. For these parts, physicalSignificance == Part.PhysicalSignificance.NONE. For regular parts it's equal to Part.PhysicalSignificance.FULL.
 +
}}
 +
{{Field
 +
  |type=int
 +
  |name=PhysicsSignificance
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Part
 +
  |name=potentialParent
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=List&#x3008;ProtoCrewMember&#x3009;
 +
  |name=protoModuleCrew
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=ProtoPartSnapshot
 +
  |name=protoPartSnapshot
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=radiativeArea
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=radiatorHeadroom
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=radiatorMax
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Rigidbody
 +
  |name=rb
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=rescaleFactor
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=List&#x3008;Part&#x3009;
 +
  |name=resourceTargets
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=resourceThermalMass
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=PartStates
 +
  |name=ResumeState
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=float
 +
  |name=scaleFactor
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=int
 +
  |name=separationIndex
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinExposedArea
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinExposedAreaFrac
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinExposedMassMult
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinInternalConductionMult
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinMassPerArea
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinMaxTemp
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinSkinConductionMult
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinTemperature
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinThermalMass
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinThermalMassModifier
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinThermalMassRecip
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinToInternalFlux
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinUnexposedExternalTemp
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=skinUnexposedMassMult
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=AttachNode
 +
  |name=srfAttachNode
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=VStackIcon
 +
  |name=stackIcon
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=StackIconGrouping
 +
  |name=stackIconGrouping
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=int
 +
  |name=stackSymmetry
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=stageAfter
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=stageBefore
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=int
 +
  |name=stageOffset
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=string
 +
  |name=stagingIcon
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=bool
 +
  |name=started
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=PartStates
 +
  |name=state
 +
  |desc=Whether the Part is IDLE (not activated yet), ACTIVATED (e.g., an activated engine), DEACTIVATED, or DEAD.
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=staticPressureAtm
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=Vector3
 +
  |name=surfaceAreas
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=SymmetryMethod
 +
  |name=symMethod
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=List&#x3008;Part&#x3009;
 +
  |name=symmetryCounterparts
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=static
 +
  |name=T GetComponentUpwards&#x3008;T&#x3009;(GameObject obj) where T : Component
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=temperature
 +
  |desc=The current temperature of the part.
 +
}}
 +
{{Field
 +
  |type=PQS_PartCollider
 +
  |name=terrainCollider
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=thermalConductionFlux
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=thermalConvectionFlux
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=thermalInternalFlux
 +
  |desc=?
 +
}}
 +
{{Field
 +
  |type=double
 +
  |name=thermalInternalFluxPrevious
 +
  |desc=?
 
}}
 
}}
 
{{Field
 
{{Field
|type=int
+
  |type=double
|name=inverseStage
+
  |name=thermalMass
|desc=The stage in which this Part will activate.
+
  |desc=?
 
}}
 
}}
 
{{Field
 
{{Field
|type=float
+
  |type=double
|name=mass
+
  |name=thermalMassModifier
|desc=The mass of this Part.
+
  |desc=?
 
}}
 
}}
 
{{Field
 
{{Field
|type=float
+
  |type=double
|name=maxTemp
+
  |name=thermalMassReciprocal
|desc=The temperature at which this Part will explode.
+
  |desc=?
 
}}
 
}}
 
{{Field
 
{{Field
|type=Callback
+
  |type=double
|name=onEditorAttach
+
  |name=thermalRadiationFlux
|desc=Add your own function to this Callback to have it called when this Part is attached to another part in the VAB. The Part object is created when the user clicks on a part in the VAB part selection menu. When that happens, you can set up this Callback to have something happen when the part gets attached to the ship.
+
  |desc=?
 
}}
 
}}
 
{{Field
 
{{Field
|type=Callback
+
  |type=AttachNode
|name=onEditorDetach
+
  |name=topNode
|desc=Like onEditorAttach, but the Callback gets invoked when the part is pulled off the ship in the VAB.
+
  |desc=?
 
}}
 
}}
 
{{Field
 
{{Field
|type=Callback
+
  |type=static
|name=onEditorDestroy
+
  |name=uint fuelRequestID
|desc=Like onEditorAttach, but the Callback gets invoked when the part is deleted in the VAB.
+
  |desc=?
 
}}
 
}}
 
{{Field
 
{{Field
|type=Part
+
  |type=Vector3
|name=parent
+
  |name=vel
|desc=The Part that this Part is attached to.
+
  |desc=?
 
}}
 
}}
 
{{Field
 
{{Field
|type=Part.PhysicalSignificance
+
  |type=Vessel
|name=physicalSignficance
+
  |name=vessel
|desc=Some parts have no physics: that is, their masses and drags don't actually get added to the ship. For these parts, physicalSignificance == Part.PhysicalSignificance.NONE. For regular parts it's equal to Part.PhysicalSignificance.FULL.
+
  |desc=The vessel of which this Part is a part. Note that vessel==null in the VAB.
 
}}
 
}}
 
{{Field
 
{{Field
|type=float
+
  |type=VesselType
|name=temperature
+
  |name=vesselType
|desc=The current temperature of the part.
+
  |desc=?
 
}}
 
}}
 
{{Field
 
{{Field
|type=Vessel
+
  |type=bool
|name=vessel
+
  |name=WaterContact
|desc=The vessel of which this Part is a part. Note that vessel==null in the VAB.
+
  |desc=Whether this part is in contact with the liquid of a CelestialBody's oceans.
 +
}}
 +
}}
 +
{{Methods|
 +
{{Method
 +
  |returntype=constructor
 +
  |returndesc=
 +
  |name=Part
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=bool
 +
  |returndesc=
 +
  |name=activate
 +
  |args={{arg|int|currentStage}}, {{arg|Vessel|activeVessel}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=AddAttachNode
 +
  |args={{arg|ConfigNode|node}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=addChild
 +
  |args={{arg|Part|child}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=bool
 +
  |returndesc=
 +
  |name=AddCrewmember
 +
  |args={{arg|ProtoCrewMember|crew}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=bool
 +
  |returndesc=
 +
  |name=AddCrewmemberAt
 +
  |args={{arg|ProtoCrewMember|crew}}, {{arg|int|seatIndex}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=InternalModel
 +
  |returndesc=
 +
  |name=AddInternalPart
 +
  |args={{arg|ConfigNode|node}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=PartModule
 +
  |returndesc=
 +
  |name=AddModule
 +
  |args={{arg|ConfigNode|node}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=PartModule
 +
  |returndesc=
 +
  |name=AddModule
 +
  |args={{arg|string|moduleName}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=AddOnMouseDown
 +
  |args={{arg|OnActionDelegate|method}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=AddOnMouseEnter
 +
  |args={{arg|OnActionDelegate|method}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=AddOnMouseExit
 +
  |args={{arg|OnActionDelegate|method}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=PartResource
 +
  |returndesc=
 +
  |name=AddResource
 +
  |args={{arg|ConfigNode|node}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Callback&#x3008;IAirstreamShield&#x3009;
 +
  |returndesc=
 +
  |name=AddShield
 +
  |args={{arg|IAirstreamShield|shd}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=AddThermalFlux
 +
  |args={{arg|double|kilowatts}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=bool
 +
  |returndesc=
 +
  |name=AlreadyProcessedRequest
 +
  |args={{arg|int|requestID}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=bool
 +
  |returndesc=
 +
  |name=CheckCollision
 +
  |args={{arg|Collision|c}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=bool
 +
  |returndesc=
 +
  |name=checkLanded
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=bool
 +
  |returndesc=
 +
  |name=checkSplashed
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=cleanReferencesFromOtherParts
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=Couple
 +
  |args={{arg|Part|tgtPart}}
 +
  |desc=Attaches the part as a child to the tgtPart. The source's part vessel is destroyed.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=CreateInternalModel
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=deactivate
 +
  |args=
 +
  |desc=Deactivates the part.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=decouple
 +
  |args={{arg|float|breakForce}}
 +
  |desc=Decouples the part from it's parent part and creates a new vessel from the detached hierarchy. breakForce is the force it will be pushed away with.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=DespawnAllCrew
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=Die
 +
  |args=
 +
  |desc=? Has attribute [ContextMenu("Die")]
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=disconnect
 +
  |args={{arg|bool|controlledSeparation}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual bool
 +
  |returndesc=
 +
  |name=DrainFuel
 +
  |args={{arg|float|amount}}
 +
  |desc=? Has attribute [Obsolete("Use Part.TransferResource instead.")]
 +
}}
 +
{{Method
 +
  |returntype=string
 +
  |returndesc=
 +
  |name=drawStats
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=Effect
 +
  |args={{arg|string|effectName}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=Effect
 +
  |args={{arg|string|effectName}}, {{arg|float|effectPower}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=explode
 +
  |args=
 +
  |desc=Calling this method makes the part explode.
 +
}}
 +
{{Method
 +
  |returntype=AttachNode
 +
  |returndesc=
 +
  |name=findAttachNode
 +
  |args={{arg|string|nodeId}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=AttachNode
 +
  |returndesc=
 +
  |name=findAttachNodeByPart
 +
  |args={{arg|Part|connectedPart}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=AttachNode[]
 +
  |returndesc=
 +
  |name=findAttachNodes
 +
  |args={{arg|string|partialNodeId}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Part
 +
  |returndesc=
 +
  |name=FindChildPart
 +
  |args={{arg|string|childName}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Part
 +
  |returndesc=
 +
  |name=FindChildPart
 +
  |args={{arg|string|childName}}, {{arg|bool|recursive}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual bool
 +
  |returndesc=
 +
  |name=FindFuel
 +
  |args={{arg|Part|source}}, {{arg|List&#x3008;Part&#x3009;|fuelSources}}, {{arg|uint|reqId}}
 +
  |desc=? Has attribute [Obsolete("Use Part.GetConnectedResources instead.")]
 +
}}
 +
{{Method
 +
  |returntype=FXGroup
 +
  |returndesc=
 +
  |name=findFxGroup
 +
  |args={{arg|string|groupID}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Animation
 +
  |returndesc=
 +
  |name=FindModelAnimator
 +
  |args={{arg|string|animatorName}}, {{arg|string|clipName}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Animation[]
 +
  |returndesc=
 +
  |name=FindModelAnimators
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Animation[]
 +
  |returndesc=
 +
  |name=FindModelAnimators
 +
  |args={{arg|string|clipName}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Transform
 +
  |returndesc=
 +
  |name=FindModelTransform
 +
  |args={{arg|string|childName}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Transform[]
 +
  |returndesc=
 +
  |name=FindModelTransforms
 +
  |args={{arg|string|childName}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=T
 +
  |returndesc=
 +
  |name=FindModuleImplementing&#x3008;T&#x3009;
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=List&#x3008;T&#x3009;
 +
  |returndesc=
 +
  |name=FindModulesImplementing&#x3008;T&#x3009;
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=FindNonPhysicslessChildren
 +
  |args={{arg|List&#x3008;Part&#x3009;|parts}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Part
 +
  |returndesc=
 +
  |name=FindNonPhysicslessParent
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=AttachNode
 +
  |returndesc=
 +
  |name=FindPartThroughNodes
 +
  |args={{arg|Part|tgtPart}}, {{arg|Part|src}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=force_activate
 +
  |args=
 +
  |desc=Activates the part. Has attribute [ContextMenu("Activate")]
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=freeze
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=GetConnectedResources
 +
  |args={{arg|int|resourceID}}, {{arg|ResourceFlowMode|flowMode}}, {{arg|List&#x3008;PartResource&#x3009;|Resources}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=float
 +
  |returndesc=
 +
  |name=GetModuleCosts
 +
  |args={{arg|float|defaultCost}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=float
 +
  |returndesc=
 +
  |name=GetModuleMass
 +
  |args={{arg|float|defaultMass}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Vector3
 +
  |returndesc=
 +
  |name=GetModuleSize
 +
  |args={{arg|Vector3|defaultSize}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=float
 +
  |returndesc=
 +
  |name=GetPhysicslessChildMass
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Transform
 +
  |returndesc=
 +
  |name=GetReferenceTransform
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=float
 +
  |returndesc=
 +
  |name=GetResourceMass
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=float
 +
  |returndesc=
 +
  |name=GetResourceMass
 +
  |args={{arg|out|double}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=float
 +
  |returndesc=
 +
  |name=GetResourceMass
 +
  |args={{arg|out|float}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=Part
 +
  |returndesc=
 +
  |name=getSymmetryCounterPart
 +
  |args={{arg|int|index}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=HandleCollision
 +
  |args={{arg|Collision|c}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=bool
 +
  |returndesc=
 +
  |name=hasIndirectChild
 +
  |args={{arg|Part|tgtPart}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=bool
 +
  |returndesc=
 +
  |name=hasIndirectParent
 +
  |args={{arg|Part|tgtPart}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=InitializeEffects
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=InitializeModules
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=bool
 +
  |returndesc=
 +
  |name=isSymmetryCounterPart
 +
  |args={{arg|Part|cPart}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=LateUpdate
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=LoadEffects
 +
  |args={{arg|ConfigNode|node}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=PartModule
 +
  |returndesc=
 +
  |name=LoadModule
 +
  |args={{arg|ConfigNode|node}}, {{arg|ref|int}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onActiveFixedUpdate
 +
  |args=
 +
  |desc=Still under investigation. Knowledge about Unity indicates probable physics pass.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onActiveUpdate
 +
  |args=
 +
  |desc=Still under investigation. Knowledge about Unity indicates probable logic pass.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=onAttach
 +
  |args={{arg|Part|parent}}, {{arg|bool|first}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onBackup
 +
  |args=
 +
  |desc=Still under investigation. Called once from the Editor(s) and in-flight during saving, loading, adding and removing parts based on this class.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=OnCollisionEnter
 +
  |args={{arg|Collision|c}}
 +
  |desc=Called when Part.Collider begins to collide with another collider.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=OnCollisionExit
 +
  |args={{arg|Collision|c}}
 +
  |desc=Called when Part.Collider stops colliding with another collider.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=OnCollisionStay
 +
  |args={{arg|Collision|c}}
 +
  |desc=Called each frame while Part.Collider is in contact with another collider. Note that due to any operations done here being rendered on the next frame, if using the Collision's contact points, you may need to add part.rigidbody.velocity * Time.deltaTime to the positions to account for the part's movement between frames, otherwise the contact points will appear to lag behind the part.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=OnCopy
 +
  |args={{arg|Part|original}}, {{arg|bool|asSymCounterpart}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onCopy
 +
  |args={{arg|Part|original}}, {{arg|bool|asSymCounterpart}}
 +
  |desc=Still under investigation. Called once from the Editor(s) when copying part (CTRL+C to copy, CTRL+V to paste) or using symmetry. Called when part is actually duplicated.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onCtrlUpd
 +
  |args={{arg|FlightCtrlState|s}}
 +
  |desc=Still under investigation. Called once every frame in-flight or when on tarmac / launchpad, this is the Autopilot pass.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onDecouple
 +
  |args={{arg|float|breakForce}}
 +
  |desc=Still under investigation. Called when decoupling. Not entirely sure about the scope.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=OnDelete
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=onDetach
 +
  |args={{arg|bool|first}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onDisconnect
 +
  |args=
 +
  |desc=Still under investigation.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=OnDrawStats
 +
  |args=
 +
  |desc=Has attribute [Obsolete("Functional behaviour should really be happening in PartModules now. In any case, this method's been replaced with OnGetStats, where you just return the string.")]
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onEditorUpdate
 +
  |args=
 +
  |desc=Still under investigation. Called in the editor while this part is in the scene (one has been added from the parts menu, either by floating around during editing or attached to the vessel).
 
}}
 
}}
{{FieldsEnd}}
 
{{MethodsStart}}
 
 
{{Method
 
{{Method
|returntype=bool
+
  |returntype=virtual void
|returndesc=
+
  |returndesc=
|name=activate
+
  |name=onFlightStart
|args={{arg|int|currentStage}}
+
  |args=
|desc=
+
  |desc=Still under investigation. Called when flight begins (vessel is 'launched'), before updates are called (in loading screen).
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=void
+
  |returntype=virtual void
|returndesc=
+
  |returndesc=
|name=deactivate
+
  |name=onFlightStartAtLaunchPad
|args=
+
  |args=
|desc=Deactivates the part.
+
  |desc=Still under investigation. Likely when flight begins before updates are called, but only if launched from the VAB/Launch-Pad.
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=void
+
  |returntype=virtual void
|returndesc=
+
  |returndesc=
|name=decouple
+
  |name=onFlightStateLoad
|args={{arg|float|breakForce}}
+
  |args={{arg|Dictionary&#x3008;string, KSPParseable&#x3009;|parsedData}}
|desc=Decouples the part from it's parent part. breakForce is the force it will be pushed away with.
+
  |desc=Still under investigation. Probably when the game is loaded mid-flight (quickload).
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=void
+
  |returntype=virtual void
|returndesc=
+
  |returndesc=
|name=disconnect
+
  |name=onFlightStateSave
|args={{arg|bool|controlledSeparation}}
+
  |args={{arg|Dictionary&#x3008;string, KSPParseable&#x3009;|partDataCollection}}
|desc=
+
  |desc=Still under investigation. Probably when the game is saved mid-flight (quicksave).
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=void
+
  |returntype=virtual void
|returndesc=
+
  |returndesc=
|name=explode
+
  |name=onGamePause
|args=
+
  |args=
|desc=Calling this method makes the part explode.
+
  |desc=Called once any time the game is paused by calling the flight log, pressing Escape or other methods.
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=void
+
  |returntype=virtual void
|returndesc=
+
  |returndesc=
|name=force_activate
+
  |name=onGameResume
|args=
+
  |args=
|desc=Activates the part.
+
  |desc=Called once any time the game is unpaused by leaving the flight log, pressing Escape or other methods.
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=void
+
  |returntype=virtual string
|returndesc=
+
  |returndesc=
|name=onXXXXX
+
  |name=OnGetStats
|args=
+
  |args=
|desc=There are many functions of the form onXXXXX() that you can override in a Part subclass in order to respond to various circumstances. See [[API:Part class overrides]].
+
  |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=void
+
  |returntype=virtual void
|returndesc=
+
  |returndesc=
|name=propagateControlUpdate
+
  |name=onJointDisable
|args={{arg|FlightCtrlState|st}}
+
  |args=
|desc=This probably lets you give the Part flight input commands (pitch, yaw, roll, etc.) as if they came from the user. See the [[API:FlightCtrlState]] class.
+
  |desc=Still under investigation. Knowledge about Unity indicates probable call when joints are disabled on models with bones and animations.
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=bool
+
  |returntype=virtual void
|returndesc=
+
  |returndesc=
|name=RequestFuel
+
  |name=onJointReset
|args={{arg|Part|source}}, {{arg|float|amount}}, {{arg|uint|reqId}},
+
  |args=
|desc=Asks the part for a given amount of fuel. This will drain the requested amount of fuel either from the Part you call this on, or from some other part(s) that this part can draw fuel from. You must pass in a fuel request ID generated by the static funtion Part.getFuelReqId(). This function returns true if it was able to fulfill the fuel request. One way you can use this function is to request 0 fuel, and use the return value to test whether the part has access to fuel (it will return false if it has nowhere to draw fuel from).
+
  |desc=Still under investigation. Knowledge about Unity indicates probable call when joints are reset on models with bones and animations.
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=bool
+
  |returntype=void
|returndesc=
+
  |returndesc=
|name=RequestRCS
+
  |name=OnLiftOff
|args={{arg|float|amount}}, {{arg|int|earliestStage}}
+
  |args=
|desc=Presumably this is used to request RCS fuel.
+
  |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=float
+
  |returntype=void
|returndesc=
+
  |returndesc=
|name=RequestResource
+
  |name=OnLoad
|args={{arg|string|resourceName}}, {{arg|float|demand}}
+
  |args=
|desc=Requests a part resource. Returns the provided amount of the resource.
+
  |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=float
+
  |returntype=virtual void
|returndesc=
+
  |returndesc=
|name=RequestResource
+
  |name=OnLoad
|args={{arg|int|resourceID}}, {{arg|float|demand}}
+
  |args={{arg|ConfigNode|node}}
|desc=Same as above, but takes the hashcode of the resource name.
+
  |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
|returntype=void
+
  |returntype=virtual void
|returndesc=
+
  |returndesc=
|name=SendEvent
+
  |name=onPack
|args={{arg|string|eventName}}
+
  |args=
|desc=Sends an event to this part. You can find out what events this part responds to by looking at the Events property. Events seem to be propagated throughout the part tree, so to send an event to the whole ship you can probably just send it to the root part of the vessel.
+
  |desc=Still under investigation. Unknown. Name suggests either an archive part or parachute relation.
 
}}
 
}}
{{MethodsEnd}}
+
{{Method
 +
  |returntype=virtual bool
 +
  |returndesc=
 +
  |name=onPartActivate
 +
  |args=
 +
  |desc=Still under investigation. Probably when activating the part through the right-mouse-button menu (context-menu) in-flight.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartAttach
 +
  |args={{arg|Part|parent}}
 +
  |desc=Still under investigation. Called once in the editor for each time part is attached to vessel.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartAwake
 +
  |args=
 +
  |desc=Still under investigation. Called once during boot (the first loading process) before and after onLoad. Called once in the editor(s) when loading the part to the scene, either by loading a vessel or adding the part from the parts menu. Probably called any and everytime the part is loaded in a scene, either as individual part or part of a vessel. Knowledge about Unity indicates probable gameObject initialization and registration with the proper controllers.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartDeactivate
 +
  |args=
 +
  |desc=Still under investigation. Probably when deactivating the part through the right-mouse-button menu (context-menu) in-flight.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartDelete
 +
  |args=
 +
  |desc=Still under investigation. Called once when removed from scene. Probably called on more occasions where a different vessel or scene is about to be loaded and the part is not used there. Often called prior to onPartDestroy, probably to make sure the part is gone.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartDestroy
 +
  |args=
 +
  |desc=Still under investigation. Called once when removed from scene. Probably called on more occasions where a different vessel or scene is about to be loaded and the part is not used there.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartDetach
 +
  |args=
 +
  |desc=Still under investigation. Called in the editor(s) when part is detached from vessel.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartExplode
 +
  |args=
 +
  |desc=Still under investigation. Called once when part is suffering too much stress, either by twisting, turning, temperature, less-than-gracefull-landings, etc.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartFixedUpdate
 +
  |args=
 +
  |desc=Still under investigation. Called in-flight once every physics frame. The forces acting upon this part are calculated in its base-method and can be supplemented here.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=OnPartJointBreak
 +
  |args={{arg|float|breakForce}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartLiftOff
 +
  |args=
 +
  |desc=Still under investigation. Called once when the vessel carrying this part is succesfully fighting gravity.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartLoad
 +
  |args=
 +
  |desc=Still under investigation. Called once when booting (first loading screen). Have not seen this anywhere else yet, called when loading the assets (CFG, textures, models, etc.) for this part.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartSplashdown
 +
  |args=
 +
  |desc=Still under investigation. Called once when the part says 'blubblub'; Is touching water. Not sure if it reacts regardless of being attached to the vessel or not.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartStart
 +
  |args=
 +
  |desc=Still under investigation. Called every time this part requires initialization; Every time the part is loaded into a scene.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartTouchdown
 +
  |args=
 +
  |desc=Still under investigation. Called once when the part or its vessel has landed.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onPartUpdate
 +
  |args=
 +
  |desc=Still under investigation. Called in-flight once every logic frame. This is where functionality can be added to the part.
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=OnSave
 +
  |args={{arg|ConfigNode|node}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=OnSplashDown
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onStartComplete
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=OnTouchDown
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual void
 +
  |returndesc=
 +
  |name=onUnpack
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=Pack
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=PromoteToPhysicalPart
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=propagateControlUpdate
 +
  |args={{arg|FlightCtrlState|st}}
 +
  |desc=This probably lets you give the Part flight input commands (pitch, yaw, roll, etc.) as if they came from the user. See the [[API:FlightCtrlState]] class.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=RegisterCrew
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=removeChild
 +
  |args={{arg|Part|child}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=RemoveCrewmember
 +
  |args={{arg|ProtoCrewMember|crew}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=RemoveModule
 +
  |args={{arg|PartModule|module}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=RemoveModules
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=RemoveOnMouseDown
 +
  |args={{arg|OnActionDelegate|method}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=RemoveOnMouseEnter
 +
  |args={{arg|OnActionDelegate|method}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=RemoveOnMouseExit
 +
  |args={{arg|OnActionDelegate|method}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=RemoveShield
 +
  |args={{arg|IAirstreamShield|shd}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual bool
 +
  |returndesc=
 +
  |name=RequestFuel
 +
  |args={{arg|Part|source}}, {{arg|float|amount}}, {{arg|uint|reqId}}
 +
  |desc=Asks the part for a given amount of fuel. This will drain the requested amount of fuel either from the Part you call this on, or from some other part(s) that this part can draw fuel from. You must pass in a fuel request ID generated by the static funtion Part.getFuelReqId(). This function returns true if it was able to fulfill the fuel request. One way you can use this function is to request 0 fuel, and use the return value to test whether the part has access to fuel (it will return false if it has nowhere to draw fuel from). Has attribute [Obsolete("Use Part.RequestResource instead.")]
 +
}}
 +
{{Method
 +
  |returntype=virtual bool
 +
  |returndesc=
 +
  |name=RequestRCS
 +
  |args={{arg|float|amount}}, {{arg|int|earliestStage}}
 +
  |desc=Has attribute [Obsolete("Use Part.RequestResource instead.")]
 +
}}
 +
{{Method
 +
  |returntype=virtual float
 +
  |returndesc=
 +
  |name=RequestResource
 +
  |args={{arg|string|resourceName}}, {{arg|float|demand}}
 +
  |desc=Requests a part resource. Returns the provided amount of the resource.
 +
}}
 +
{{Method
 +
  |returntype=virtual double
 +
  |returndesc=
 +
  |name=RequestResource
 +
  |args={{arg|string|resourceName}}, {{arg|double|demand}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual double
 +
  |returndesc=
 +
  |name=RequestResource
 +
  |args={{arg|int|resourceID}}, {{arg|double|demand}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual float
 +
  |returndesc=
 +
  |name=RequestResource
 +
  |args={{arg|int|resourceID}}, {{arg|float|demand}}
 +
  |desc=Same as above, but takes the hashcode of the resource name.
 +
}}
 +
{{Method
 +
  |returntype=virtual double
 +
  |returndesc=
 +
  |name=RequestResource
 +
  |args={{arg|string|resourceName}}, {{arg|double|demand}}, {{arg|ResourceFlowMode|flowMode}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=virtual double
 +
  |returndesc=
 +
  |name=RequestResource
 +
  |args={{arg|int|resourceID}}, {{arg|double|demand}}, {{arg|ResourceFlowMode|flowMode}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=ResetCollisionIgnores
 +
  |args=
 +
  |desc=? Has attribute [ContextMenu("Reset Collision Ignores")]
 +
}}
 +
{{Method
 +
  |returntype=IEnumerator
 +
  |returndesc=
 +
  |name=ResetJoints
 +
  |args=
 +
  |desc=? Has attribute [DebuggerHidden]
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=ResumeVelocity
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SaveEffects
 +
  |args={{arg|ConfigNode|node}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=ScheduleSetCollisionIgnores
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SendEvent
 +
  |args={{arg|string|eventName}}
 +
  |desc=Sends an event to this part. You can find out what events this part responds to by looking at the Events property. Events seem to be propagated throughout the part tree, so to send an event to the whole ship you can probably just send it to the root part of the vessel.
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SendEvent
 +
  |args={{arg|string|eventName}}, {{arg|BaseEventData|data}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SendEvent
 +
  |args={{arg|string|eventName}}, {{arg|BaseEventData|data}}, {{arg|int|maxDepth}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetCollisionIgnores
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetDetectCollisions
 +
  |args={{arg|bool|setState}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetHierarchyRoot
 +
  |args={{arg|Part|root}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetHighlight
 +
  |args={{arg|bool|active}}, {{arg|bool|recursive}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetHighlightColor
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetHighlightColor
 +
  |args={{arg|Color|color}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetHighlightDefault
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetHighlightType
 +
  |args={{arg|HighlightType|type}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetLayer
 +
  |args={{arg|GameObject|obj}}, {{arg|int|layer}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetMirror
 +
  |args={{arg|Vector3|mirrorVector}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=setOpacity
 +
  |args={{arg|float|opacity}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=setParent
 +
  |args={{arg|Part|p}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetReferenceTransform
 +
  |args={{arg|Transform|t}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SetResource
 +
  |args={{arg|ConfigNode|node}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=SpawnCrew
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=double
 +
  |returndesc=
 +
  |name=TransferResource
 +
  |args={{arg|int|resourceID}}, {{arg|double|amount}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=Undock
 +
  |args={{arg|DockedVesselInfo|newVesselInfo}}
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=unfreeze
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=Unpack
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=UnregisterCrew
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{Method
 +
  |returntype=void
 +
  |returndesc=
 +
  |name=UpdateOrgPosAndRot
 +
  |args={{arg|Part|newRoot}}
 +
  |desc=?
 +
}}
 +
{{StaticMethod
 +
  |returntype=Part
 +
  |returndesc=
 +
  |name=FromGO
 +
  |args={{arg|GameObject|obj}}
 +
  |desc=?
 +
}}
 +
{{StaticMethod
 +
  |returntype=Component
 +
  |returndesc=
 +
  |name=GetComponentUpwards
 +
  |args={{arg|string|type}}, {{arg|GameObject|obj}}
 +
  |desc=?
 +
}}
 +
{{StaticMethod
 +
  |returntype=uint
 +
  |returndesc=
 +
  |name=getFuelReqId
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{StaticMethod
 +
  |returntype=int
 +
  |returndesc=
 +
  |name=NewRequestID
 +
  |args=
 +
  |desc=?
 +
}}
 +
{{StaticMethod
 +
  |returntype=Vector3
 +
  |returndesc=
 +
  |name=PartToVesselSpaceDir
 +
  |args={{arg|Vector3|dir}}, {{arg|Part|p}}, {{arg|Vessel|v}}, {{arg|PartSpaceMode|space}}
 +
  |desc=?
 +
}}
 +
{{StaticMethod
 +
  |returntype=Vector3
 +
  |returndesc=
 +
  |name=PartToVesselSpacePos
 +
  |args={{arg|Vector3|pos}}, {{arg|Part|p}}, {{arg|Vessel|v}}, {{arg|PartSpaceMode|space}}
 +
  |desc=?
 +
}}
 +
{{StaticMethod
 +
  |returntype=Quaternion
 +
  |returndesc=
 +
  |name=PartToVesselSpaceRot
 +
  |args={{arg|Quaternion|rot}}, {{arg|Part|p}}, {{arg|Vessel|v}}, {{arg|PartSpaceMode|space}}
 +
  |desc=?
 +
}}
 +
{{StaticMethod
 +
  |returntype=Vector3
 +
  |returndesc=
 +
  |name=VesselToPartSpaceDir
 +
  |args={{arg|Vector3|dir}}, {{arg|Part|p}}, {{arg|Vessel|v}}, {{arg|PartSpaceMode|space}}
 +
  |desc=?
 +
}}
 +
{{StaticMethod
 +
  |returntype=Vector3
 +
  |returndesc=
 +
  |name=VesselToPartSpacePos
 +
  |args={{arg|Vector3|pos}}, {{arg|Part|p}}, {{arg|Vessel|v}}, {{arg|PartSpaceMode|space}}
 +
  |desc=?
 +
}}
 +
{{StaticMethod
 +
  |returntype=Quaternion
 +
  |returndesc=
 +
  |name=VesselToPartSpaceRot
 +
  |args={{arg|Quaternion|rot}}, {{arg|Part|p}}, {{arg|Vessel|v}}, {{arg|PartSpaceMode|space}}
 +
  |desc=?
 +
}}
 +
}}
 +
== Other API ==
 +
{{PAGENAME}} also contains the following, not included above.
  
 +
<syntaxhighlight>
 +
...
 +
    public sealed class DragModel : Enum
 +
    {
 +
        public const DragModel CONIC = 1;
 +
        public const DragModel CUBE = 4;
 +
        public const DragModel CYLINDRICAL = 2;
 +
        public const DragModel DEFAULT = 0;
 +
        public const DragModel NONE = 5;
 +
        public const DragModel SPHERICAL = 3;
 +
        public int value__;
 +
    }
 +
    public sealed class HighlightType : Enum
 +
    {
 +
        public const HighlightType AlwaysOn = 2;
 +
        public const HighlightType Disabled = 0;
 +
        public const HighlightType OnMouseOver = 1;
 +
        public int value__;
 +
    }
 +
    public sealed class OnActionDelegate : MulticastDelegate
 +
    {
 +
        public OnActionDelegate(object @object, IntPtr method);
 +
 +
        public virtual IAsyncResult BeginInvoke(Part p, AsyncCallback callback, object @object);
 +
        public virtual void EndInvoke(IAsyncResult result);
 +
        public virtual void Invoke(Part p);
 +
    }
 +
    public sealed class PhysicalSignificance : Enum
 +
    {
 +
        public const PhysicalSignificance FULL = 0;
 +
        public const PhysicalSignificance NONE = 1;
 +
        public int value__;
 +
    }
 +
...
 +
</syntaxhighlight>
 
[[Category:Community API Documentation]]
 
[[Category:Community API Documentation]]
 
{{Merge|API:Part class overrides}}
 

Latest revision as of 02:43, 17 June 2018

Part Class

Inherits Implements
MonoBehaviour

    A Part is the C# object representing a single part on a vessel. You can subclass Part, creating a new type of part that users can place on their ships. The C# class that controls a part is specified in that part's "part.cfg" file by the line "module = <Part subclass>" where <Part subclass> is the name of your new Part subclass. You can also create PartModules, which add to the behavior of an existing part. From within a PartModule, access the Part you are attached to via the "part" field.

    If you build a plugin by subclassing Part, you will want to override some of the Part methods. See API:Part class overrides.

    Below are some of the interesting members of the Part class. Note that the list of members is far from complete.

    Properties

    The following is a list of properties in Part.

    Name Description
    BaseActionList Actions { get; }  ?
    int ClassID { get; }  ?
    string ClassName { get; }  ?
    DragCubeList DragCubes { get; }  ?
    EffectList Effects { get; }  ?
    BaseEventList Events { get; } A list of the events that the Part will respond to. For example, landing legs deploy in response to certain events.
    BaseFieldList Fields { get; }  ?
    bool hasStagingIcon { get; }  ?
    bool isAttached { get; set; }  ?
    bool isConnected { get; set; }  ? Has attribute [Obsolete("for 0.14 support, seriously it's not working anynmore")]
    bool isControllable { get; }  ?
    bool Landed { get; }  ?
    Part localRoot { get; }  ?
    PartModuleList Modules { get; } All the PartModules which this part contains. These can be defined as MODULE nodes in config files, or added programatically.
    Orbit orbit { get; } Don't use this!! Use vessel.orbit instead.
    PartValues PartValues { get; }  ?
    PartResourceList Resources { get; }  ?
    Rigidbody Rigidbody { get; } This object lets you do physics to your part: for example, apply forces to it. Check out the Unity documentation on RigidBody.
    bool ShieldedFromAirstream { get; set; }  ?
    bool Splashed { get; }  ?
    PartStates State { get; }  ?
    Vector3 WCoM { get; }  ?

    Fields

    The following is a list of fields in Part.

    Signature Description
    bool ActivatesEvenIfDisconnected  ?
    double aerodynamicArea  ?
    Transform airlock The transform which gives the location of the airlock. This is used to determine where kerbals can enter the craft, and where they spawn on going on EVA.
    float angularDrag  ?
    double atmDensity The current atmospheric density (air pressure) around the part in kg/m³.
    bool attached  ?
    PartJoint attachJoint  ?
    AttachNodeMethod attachMethod  ?
    AttachModes attachMode  ?
    List〈AttachNode〉 attachNodes  ?
    AttachRules attachRules  ?
    Vector3 attPos  ?
    Vector3 attPos0  ?
    Quaternion attRotation  ?
    Quaternion attRotation0  ?
    Vector3 bodyLiftLocalPosition  ?
    Vector3 bodyLiftLocalVector  ?
    float bodyLiftMultiplier  ?
    float bodyLiftScalar  ?
    float breakingForce  ?
    float breakingTorque  ?
    float buoyancy  ?
    Vector3 CenterOfBuoyancy  ?
    List〈Part〉 children A list of all the Parts attached to this Part (except this Part's parent, i.e., the part this part was attached to).
    int childStageOffset  ?
    Collider collider The part's collider. This is a simplified part mesh used for physics calculations in collisions.
    CollisionEnhancer collisionEnhancer  ?
    Vector3 CoLOffset  ?
    static Color defaultHighlightNone  ?
    static Color defaultHighlightPart  ?
    Vector3 CoMOffset  ?
    bool connected  ?
    Vector3 CoPOffset  ?
    uint craftID  ?
    float crashTolerance How resilient this part is to exploding during collisions.
    int CrewCapacity How many kerbals this part can hold.
    List〈Collider〉 currentCollisions  ?
    string customPartData  ?
    int defaultInverseStage  ?
    DragModel dragModel  ?
    Vector3 dragReferenceVector  ?
    float dragScalar  ?
    Vector3 dragVector  ?
    Vector3 dragVectorDir  ?
    Vector3 dragVectorDirLocal  ?
    float dragVectorMag  ?
    float dragVectorSqrMag  ?
    double dynamicPressurekPa  ?
    Part editorCollision  ?
    List〈Part〉 editorLinks  ?
    double emissiveConstant  ?
    float explosionPotential  ?
    double exposedArea  ?
    T FindChildPart〈T〉() where T : Part  ?
    T FindChildPart〈T〉(bool recursive) where T : Part  ?
    T[] FindChildParts〈T〉() where T : Part  ?
    T[] FindChildParts〈T〉(bool recursive) where T : Part  ?
    T FindModelComponent〈T〉() where T : Component  ?
    T FindModelComponent〈T〉(string childName) where T : Component  ?
    T[] FindModelComponents〈T〉() where T : Component  ?
    T[] FindModelComponents〈T〉(string childName) where T : Component  ?
    string flagURL  ?
    uint flightID  ?
    bool frozen  ?
    bool fuelCrossFeed Whether fuel can be drawn through this part. Decouplers usually block fuel flow between stages for example.
    List〈Part〉 fuelLookupTargets  ?
    List〈FXGroup〉 fxGroups  ?
    bool GroundContact Whether this part is currently in contact with the solid surface of a CelestialBody.
    bool hasHeiarchyModel  ?
    bool hasLiftModule  ?
    double heatConductivity  ?
    double heatConvectiveConstant  ?
    Color highlightColor  ?
    global::HighlightingSystem.Highlighter highlighter  ?
    HighlightType highlightType  ?
    string initialVesselName  ?
    int inStageIndex  ?
    InternalModel internalModel The interior (IVA) model for this part.
    string InternalModelName  ?
    int inverseStage The stage in which this Part will activate.
    bool isClone  ?
    bool isControlSource Whether this is capable of being a control source, i.e. whether it has "Control from here" on its right-click menu.
    bool isMirrored  ?
    bool isPersistent  ?
    uint lastFuelRequestId  ?
    uint launchID  ?
    double machNumber  ?
    int manualStageOffset  ?
    float mass The mass of this Part in metric tons (t).
    float maximum_drag  ?
    double maxTemp The temperature at which this Part will explode.
    float minimum_drag  ?
    Vector3 mirrorAxis  ?
    Vector3 mirrorRefAxis  ?
    Vector3 mirrorVector  ?
    uint missionID  ?
    string NoCrossFeedNodeKey  ?
    Callback OnEditorAttach Add your own function to this Callback to have it called when this Part is attached to another part in the VAB. The Part object is created when the user clicks on a part in the VAB part selection menu. When that happens, you can set up this Callback to have something happen when the part gets attached to the ship.
    Callback OnEditorDestroy Like onEditorAttach, but the Callback gets invoked when the part is deleted in the VAB.
    Callback OnEditorDetach Like onEditorAttach, but the Callback gets invoked when the part is pulled off the ship in the VAB.
    Callback OnJustAboutToBeDestroyed  ?
    Vector3 orgPos  ?
    Quaternion orgRot  ?
    int originalStage  ?
    bool packed  ?
    Part parent The Part that this Part is attached to.
    PartBuoyancy partBuoyancy How floaty this part is in liquids.
    AvailablePart partInfo  ?
    string partName The human-readable name of this part, e.g. "PPD-10 Hitchhiker Storage Container" for the crewCabin.
    Transform partTransform This part's transform. Transforms store a GameObject's position, rotation and scaling.
    PhysicalSignificance physicalSignificance Some parts have no physics: that is, their masses and drags don't actually get added to the ship. For these parts, physicalSignificance == Part.PhysicalSignificance.NONE. For regular parts it's equal to Part.PhysicalSignificance.FULL.
    int PhysicsSignificance  ?
    Part potentialParent  ?
    List〈ProtoCrewMember〉 protoModuleCrew  ?
    ProtoPartSnapshot protoPartSnapshot  ?
    double radiativeArea  ?
    double radiatorHeadroom  ?
    double radiatorMax  ?
    Rigidbody rb  ?
    float rescaleFactor  ?
    List〈Part〉 resourceTargets  ?
    double resourceThermalMass  ?
    PartStates ResumeState  ?
    float scaleFactor  ?
    int separationIndex  ?
    double skinExposedArea  ?
    double skinExposedAreaFrac  ?
    double skinExposedMassMult  ?
    double skinInternalConductionMult  ?
    double skinMassPerArea  ?
    double skinMaxTemp  ?
    double skinSkinConductionMult  ?
    double skinTemperature  ?
    double skinThermalMass  ?
    double skinThermalMassModifier  ?
    double skinThermalMassRecip  ?
    double skinToInternalFlux  ?
    double skinUnexposedExternalTemp  ?
    double skinUnexposedMassMult  ?
    AttachNode srfAttachNode  ?
    VStackIcon stackIcon  ?
    StackIconGrouping stackIconGrouping  ?
    int stackSymmetry  ?
    bool stageAfter  ?
    bool stageBefore  ?
    int stageOffset  ?
    string stagingIcon  ?
    bool started  ?
    PartStates state Whether the Part is IDLE (not activated yet), ACTIVATED (e.g., an activated engine), DEACTIVATED, or DEAD.
    double staticPressureAtm  ?
    Vector3 surfaceAreas  ?
    SymmetryMethod symMethod  ?
    List〈Part〉 symmetryCounterparts  ?
    static T GetComponentUpwards〈T〉(GameObject obj) where T : Component  ?
    double temperature The current temperature of the part.
    PQS_PartCollider terrainCollider  ?
    double thermalConductionFlux  ?
    double thermalConvectionFlux  ?
    double thermalInternalFlux  ?
    double thermalInternalFluxPrevious  ?
    double thermalMass  ?
    double thermalMassModifier  ?
    double thermalMassReciprocal  ?
    double thermalRadiationFlux  ?
    AttachNode topNode  ?
    static uint fuelRequestID  ?
    Vector3 vel  ?
    Vessel vessel The vessel of which this Part is a part. Note that vessel==null in the VAB.
    VesselType vesselType  ?
    bool WaterContact Whether this part is in contact with the liquid of a CelestialBody's oceans.

    Methods

    The following are methods included in Part.

    Signature Description
    constructor Part()  ?
    bool activate(int currentStage, Vessel activeVessel)  ?
    void AddAttachNode(ConfigNode node)  ?
    void addChild(Part child)  ?
    bool AddCrewmember(ProtoCrewMember crew)  ?
    bool AddCrewmemberAt(ProtoCrewMember crew, int seatIndex)  ?
    InternalModel AddInternalPart(ConfigNode node)  ?
    PartModule AddModule(ConfigNode node)  ?
    PartModule AddModule(string moduleName)  ?
    void AddOnMouseDown(OnActionDelegate method)  ?
    void AddOnMouseEnter(OnActionDelegate method)  ?
    void AddOnMouseExit(OnActionDelegate method)  ?
    PartResource AddResource(ConfigNode node)  ?
    Callback〈IAirstreamShield〉 AddShield(IAirstreamShield shd)  ?
    void AddThermalFlux(double kilowatts)  ?
    bool AlreadyProcessedRequest(int requestID)  ?
    bool CheckCollision(Collision c)  ?
    bool checkLanded()  ?
    bool checkSplashed()  ?
    void cleanReferencesFromOtherParts()  ?
    void Couple(Part tgtPart) Attaches the part as a child to the tgtPart. The source's part vessel is destroyed.
    void CreateInternalModel()  ?
    void deactivate() Deactivates the part.
    void decouple(float breakForce) Decouples the part from it's parent part and creates a new vessel from the detached hierarchy. breakForce is the force it will be pushed away with.
    void DespawnAllCrew()  ?
    void Die()  ? Has attribute [ContextMenu("Die")]
    void disconnect(bool controlledSeparation)  ?
    virtual bool DrainFuel(float amount)  ? Has attribute [Obsolete("Use Part.TransferResource instead.")]
    string drawStats()  ?
    void Effect(string effectName)  ?
    void Effect(string effectName, float effectPower)  ?
    void explode() Calling this method makes the part explode.
    AttachNode findAttachNode(string nodeId)  ?
    AttachNode findAttachNodeByPart(Part connectedPart)  ?
    AttachNode[] findAttachNodes(string partialNodeId)  ?
    Part FindChildPart(string childName)  ?
    Part FindChildPart(string childName, bool recursive)  ?
    virtual bool FindFuel(Part source, List〈Part〉 fuelSources, uint reqId)  ? Has attribute [Obsolete("Use Part.GetConnectedResources instead.")]
    FXGroup findFxGroup(string groupID)  ?
    Animation FindModelAnimator(string animatorName, string clipName)  ?
    Animation[] FindModelAnimators()  ?
    Animation[] FindModelAnimators(string clipName)  ?
    Transform FindModelTransform(string childName)  ?
    Transform[] FindModelTransforms(string childName)  ?
    T FindModuleImplementing〈T〉()  ?
    List〈T〉 FindModulesImplementing〈T〉()  ?
    void FindNonPhysicslessChildren(List〈Part〉 parts)  ?
    Part FindNonPhysicslessParent()  ?
    AttachNode FindPartThroughNodes(Part tgtPart, Part src)  ?
    void force_activate() Activates the part. Has attribute [ContextMenu("Activate")]
    void freeze()  ?
    void GetConnectedResources(int resourceID, ResourceFlowMode flowMode, List〈PartResource〉 Resources)  ?
    float GetModuleCosts(float defaultCost)  ?
    float GetModuleMass(float defaultMass)  ?
    Vector3 GetModuleSize(Vector3 defaultSize)  ?
    float GetPhysicslessChildMass()  ?
    Transform GetReferenceTransform()  ?
    float GetResourceMass()  ?
    float GetResourceMass(out double)  ?
    float GetResourceMass(out float)  ?
    Part getSymmetryCounterPart(int index)  ?
    void HandleCollision(Collision c)  ?
    bool hasIndirectChild(Part tgtPart)  ?
    bool hasIndirectParent(Part tgtPart)  ?
    void InitializeEffects()  ?
    void InitializeModules()  ?
    bool isSymmetryCounterPart(Part cPart)  ?
    virtual void LateUpdate()  ?
    void LoadEffects(ConfigNode node)  ?
    PartModule LoadModule(ConfigNode node, ref int)  ?
    virtual void onActiveFixedUpdate() Still under investigation. Knowledge about Unity indicates probable physics pass.
    virtual void onActiveUpdate() Still under investigation. Knowledge about Unity indicates probable logic pass.
    void onAttach(Part parent, bool first)  ?
    virtual void onBackup() Still under investigation. Called once from the Editor(s) and in-flight during saving, loading, adding and removing parts based on this class.
    void OnCollisionEnter(Collision c) Called when Part.Collider begins to collide with another collider.
    void OnCollisionExit(Collision c) Called when Part.Collider stops colliding with another collider.
    void OnCollisionStay(Collision c) Called each frame while Part.Collider is in contact with another collider. Note that due to any operations done here being rendered on the next frame, if using the Collision's contact points, you may need to add part.rigidbody.velocity * Time.deltaTime to the positions to account for the part's movement between frames, otherwise the contact points will appear to lag behind the part.
    void OnCopy(Part original, bool asSymCounterpart)  ?
    virtual void onCopy(Part original, bool asSymCounterpart) Still under investigation. Called once from the Editor(s) when copying part (CTRL+C to copy, CTRL+V to paste) or using symmetry. Called when part is actually duplicated.
    virtual void onCtrlUpd(FlightCtrlState s) Still under investigation. Called once every frame in-flight or when on tarmac / launchpad, this is the Autopilot pass.
    virtual void onDecouple(float breakForce) Still under investigation. Called when decoupling. Not entirely sure about the scope.
    void OnDelete()  ?
    void onDetach(bool first)  ?
    virtual void onDisconnect() Still under investigation.
    virtual void OnDrawStats() Has attribute [Obsolete("Functional behaviour should really be happening in PartModules now. In any case, this method's been replaced with OnGetStats, where you just return the string.")]
    virtual void onEditorUpdate() Still under investigation. Called in the editor while this part is in the scene (one has been added from the parts menu, either by floating around during editing or attached to the vessel).
    virtual void onFlightStart() Still under investigation. Called when flight begins (vessel is 'launched'), before updates are called (in loading screen).
    virtual void onFlightStartAtLaunchPad() Still under investigation. Likely when flight begins before updates are called, but only if launched from the VAB/Launch-Pad.
    virtual void onFlightStateLoad(Dictionary〈string, KSPParseable〉 parsedData) Still under investigation. Probably when the game is loaded mid-flight (quickload).
    virtual void onFlightStateSave(Dictionary〈string, KSPParseable〉 partDataCollection) Still under investigation. Probably when the game is saved mid-flight (quicksave).
    virtual void onGamePause() Called once any time the game is paused by calling the flight log, pressing Escape or other methods.
    virtual void onGameResume() Called once any time the game is unpaused by leaving the flight log, pressing Escape or other methods.
    virtual string OnGetStats()  ?
    virtual void onJointDisable() Still under investigation. Knowledge about Unity indicates probable call when joints are disabled on models with bones and animations.
    virtual void onJointReset() Still under investigation. Knowledge about Unity indicates probable call when joints are reset on models with bones and animations.
    void OnLiftOff()  ?
    void OnLoad()  ?
    virtual void OnLoad(ConfigNode node)  ?
    virtual void onPack() Still under investigation. Unknown. Name suggests either an archive part or parachute relation.
    virtual bool onPartActivate() Still under investigation. Probably when activating the part through the right-mouse-button menu (context-menu) in-flight.
    virtual void onPartAttach(Part parent) Still under investigation. Called once in the editor for each time part is attached to vessel.
    virtual void onPartAwake() Still under investigation. Called once during boot (the first loading process) before and after onLoad. Called once in the editor(s) when loading the part to the scene, either by loading a vessel or adding the part from the parts menu. Probably called any and everytime the part is loaded in a scene, either as individual part or part of a vessel. Knowledge about Unity indicates probable gameObject initialization and registration with the proper controllers.
    virtual void onPartDeactivate() Still under investigation. Probably when deactivating the part through the right-mouse-button menu (context-menu) in-flight.
    virtual void onPartDelete() Still under investigation. Called once when removed from scene. Probably called on more occasions where a different vessel or scene is about to be loaded and the part is not used there. Often called prior to onPartDestroy, probably to make sure the part is gone.
    virtual void onPartDestroy() Still under investigation. Called once when removed from scene. Probably called on more occasions where a different vessel or scene is about to be loaded and the part is not used there.
    virtual void onPartDetach() Still under investigation. Called in the editor(s) when part is detached from vessel.
    virtual void onPartExplode() Still under investigation. Called once when part is suffering too much stress, either by twisting, turning, temperature, less-than-gracefull-landings, etc.
    virtual void onPartFixedUpdate() Still under investigation. Called in-flight once every physics frame. The forces acting upon this part are calculated in its base-method and can be supplemented here.
    void OnPartJointBreak(float breakForce)  ?
    virtual void onPartLiftOff() Still under investigation. Called once when the vessel carrying this part is succesfully fighting gravity.
    virtual void onPartLoad() Still under investigation. Called once when booting (first loading screen). Have not seen this anywhere else yet, called when loading the assets (CFG, textures, models, etc.) for this part.
    virtual void onPartSplashdown() Still under investigation. Called once when the part says 'blubblub'; Is touching water. Not sure if it reacts regardless of being attached to the vessel or not.
    virtual void onPartStart() Still under investigation. Called every time this part requires initialization; Every time the part is loaded into a scene.
    virtual void onPartTouchdown() Still under investigation. Called once when the part or its vessel has landed.
    virtual void onPartUpdate() Still under investigation. Called in-flight once every logic frame. This is where functionality can be added to the part.
    virtual void OnSave(ConfigNode node)  ?
    void OnSplashDown()  ?
    virtual void onStartComplete()  ?
    void OnTouchDown()  ?
    virtual void onUnpack()  ?
    void Pack()  ?
    void PromoteToPhysicalPart()  ?
    void propagateControlUpdate(FlightCtrlState st) This probably lets you give the Part flight input commands (pitch, yaw, roll, etc.) as if they came from the user. See the API:FlightCtrlState class.
    void RegisterCrew()  ?
    void removeChild(Part child)  ?
    void RemoveCrewmember(ProtoCrewMember crew)  ?
    void RemoveModule(PartModule module)  ?
    void RemoveModules()  ?
    void RemoveOnMouseDown(OnActionDelegate method)  ?
    void RemoveOnMouseEnter(OnActionDelegate method)  ?
    void RemoveOnMouseExit(OnActionDelegate method)  ?
    void RemoveShield(IAirstreamShield shd)  ?
    virtual bool RequestFuel(Part source, float amount, uint reqId) Asks the part for a given amount of fuel. This will drain the requested amount of fuel either from the Part you call this on, or from some other part(s) that this part can draw fuel from. You must pass in a fuel request ID generated by the static funtion Part.getFuelReqId(). This function returns true if it was able to fulfill the fuel request. One way you can use this function is to request 0 fuel, and use the return value to test whether the part has access to fuel (it will return false if it has nowhere to draw fuel from). Has attribute [Obsolete("Use Part.RequestResource instead.")]
    virtual bool RequestRCS(float amount, int earliestStage) Has attribute [Obsolete("Use Part.RequestResource instead.")]
    virtual float RequestResource(string resourceName, float demand) Requests a part resource. Returns the provided amount of the resource.
    virtual double RequestResource(string resourceName, double demand)  ?
    virtual double RequestResource(int resourceID, double demand)  ?
    virtual float RequestResource(int resourceID, float demand) Same as above, but takes the hashcode of the resource name.
    virtual double RequestResource(string resourceName, double demand, ResourceFlowMode flowMode)  ?
    virtual double RequestResource(int resourceID, double demand, ResourceFlowMode flowMode)  ?
    void ResetCollisionIgnores()  ? Has attribute [ContextMenu("Reset Collision Ignores")]
    IEnumerator ResetJoints()  ? Has attribute [DebuggerHidden]
    void ResumeVelocity()  ?
    void SaveEffects(ConfigNode node)  ?
    void ScheduleSetCollisionIgnores()  ?
    void SendEvent(string eventName) Sends an event to this part. You can find out what events this part responds to by looking at the Events property. Events seem to be propagated throughout the part tree, so to send an event to the whole ship you can probably just send it to the root part of the vessel.
    void SendEvent(string eventName, BaseEventData data)  ?
    void SendEvent(string eventName, BaseEventData data, int maxDepth)  ?
    void SetCollisionIgnores()  ?
    void SetDetectCollisions(bool setState)  ?
    void SetHierarchyRoot(Part root)  ?
    void SetHighlight(bool active, bool recursive)  ?
    void SetHighlightColor()  ?
    void SetHighlightColor(Color color)  ?
    void SetHighlightDefault()  ?
    void SetHighlightType(HighlightType type)  ?
    void SetLayer(GameObject obj, int layer)  ?
    void SetMirror(Vector3 mirrorVector)  ?
    void setOpacity(float opacity)  ?
    void setParent(Part p)  ?
    void SetReferenceTransform(Transform t)  ?
    void SetResource(ConfigNode node)  ?
    void SpawnCrew()  ?
    double TransferResource(int resourceID, double amount)  ?
    void Undock(DockedVesselInfo newVesselInfo)  ?
    void unfreeze()  ?
    void Unpack()  ?
    void UnregisterCrew()  ?
    void UpdateOrgPosAndRot(Part newRoot)  ?
    static Part FromGO(GameObject obj)  ?
    static Component GetComponentUpwards(string type, GameObject obj)  ?
    static uint getFuelReqId()  ?
    static int NewRequestID()  ?
    static Vector3 PartToVesselSpaceDir(Vector3 dir, Part p, Vessel v, PartSpaceMode space)  ?
    static Vector3 PartToVesselSpacePos(Vector3 pos, Part p, Vessel v, PartSpaceMode space)  ?
    static Quaternion PartToVesselSpaceRot(Quaternion rot, Part p, Vessel v, PartSpaceMode space)  ?
    static Vector3 VesselToPartSpaceDir(Vector3 dir, Part p, Vessel v, PartSpaceMode space)  ?
    static Vector3 VesselToPartSpacePos(Vector3 pos, Part p, Vessel v, PartSpaceMode space)  ?
    static Quaternion VesselToPartSpaceRot(Quaternion rot, Part p, Vessel v, PartSpaceMode space)  ?

    Other API

    Part also contains the following, not included above.

    ...
        public sealed class DragModel : Enum
        {
            public const DragModel CONIC = 1;
            public const DragModel CUBE = 4;
            public const DragModel CYLINDRICAL = 2;
            public const DragModel DEFAULT = 0;
            public const DragModel NONE = 5;
            public const DragModel SPHERICAL = 3;
            public int value__;
        }
        public sealed class HighlightType : Enum
        {
            public const HighlightType AlwaysOn = 2;
            public const HighlightType Disabled = 0;
            public const HighlightType OnMouseOver = 1;
            public int value__;
        }
        public sealed class OnActionDelegate : MulticastDelegate
        {
            public OnActionDelegate(object @object, IntPtr method);
     
            public virtual IAsyncResult BeginInvoke(Part p, AsyncCallback callback, object @object);
            public virtual void EndInvoke(IAsyncResult result);
            public virtual void Invoke(Part p);
        }
        public sealed class PhysicalSignificance : Enum
        {
            public const PhysicalSignificance FULL = 0;
            public const PhysicalSignificance NONE = 1;
            public int value__;
        }
    ...