Difference between revisions of "API:Part"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Clarifying Couple()/decouple() methods.)
m (Blanked the page)
Line 1: Line 1:
<!-- Class tables autogenerated against KSP 1.04 by Glyph's kerbal_wiki_pdoc program. -->
 
{{Class
 
  |inherits={{Type|MonoBehaviour}}
 
  |implements=<ul></ul>
 
  |name=Part
 
  |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.
 
  
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|properties=
 
{{Property
 
  |type=BaseActionList
 
  |name=Actions
 
  |desc=?
 
  |hasget=1
 
  |hasset=
 
}}
 
{{Property
 
  |type=int
 
  |name=ClassID
 
  |desc=?
 
  |hasget=1
 
  |hasset=
 
}}
 
{{Property
 
  |type=string
 
  |name=ClassName
 
  |desc=?
 
  |hasget=1
 
  |hasset=
 
}}
 
{{Property
 
  |type=DragCubeList
 
  |name=DragCubes
 
  |desc=?
 
  |hasget=1
 
  |hasset=
 
}}
 
{{Property
 
  |type=EffectList
 
  |name=Effects
 
  |desc=?
 
  |hasget=1
 
  |hasset=
 
}}
 
{{Property
 
  |type=BaseEventList
 
  |name=Events
 
  |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
 
  |type=BaseFieldList
 
  |name=Fields
 
  |desc=?
 
  |hasget=1
 
  |hasset=
 
}}
 
{{Property
 
  |type=bool
 
  |name=hasStagingIcon
 
  |desc=?
 
  |hasget=1
 
  |hasset=
 
}}
 
{{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
 
  |type=double
 
  |name=thermalMass
 
  |desc=?
 
}}
 
{{Field
 
  |type=double
 
  |name=thermalMassModifier
 
  |desc=?
 
}}
 
{{Field
 
  |type=double
 
  |name=thermalMassReciprocal
 
  |desc=?
 
}}
 
{{Field
 
  |type=double
 
  |name=thermalRadiationFlux
 
  |desc=?
 
}}
 
{{Field
 
  |type=AttachNode
 
  |name=topNode
 
  |desc=?
 
}}
 
{{Field
 
  |type=static
 
  |name=uint fuelRequestID
 
  |desc=?
 
}}
 
{{Field
 
  |type=Vector3
 
  |name=vel
 
  |desc=?
 
}}
 
{{Field
 
  |type=Vessel
 
  |name=vessel
 
  |desc=The vessel of which this Part is a part. Note that vessel==null in the VAB.
 
}}
 
{{Field
 
  |type=VesselType
 
  |name=vesselType
 
  |desc=?
 
}}
 
{{Field
 
  |type=bool
 
  |name=WaterContact
 
  |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).
 
}}
 
{{Method
 
  |returntype=virtual void
 
  |returndesc=
 
  |name=onFlightStart
 
  |args=
 
  |desc=Still under investigation. Called when flight begins (vessel is 'launched'), before updates are called (in loading screen).
 
}}
 
{{Method
 
  |returntype=virtual void
 
  |returndesc=
 
  |name=onFlightStartAtLaunchPad
 
  |args=
 
  |desc=Still under investigation. Likely when flight begins before updates are called, but only if launched from the VAB/Launch-Pad.
 
}}
 
{{Method
 
  |returntype=virtual void
 
  |returndesc=
 
  |name=onFlightStateLoad
 
  |args={{arg|Dictionary&#x3008;string, KSPParseable&#x3009;|parsedData}}
 
  |desc=Still under investigation. Probably when the game is loaded mid-flight (quickload).
 
}}
 
{{Method
 
  |returntype=virtual void
 
  |returndesc=
 
  |name=onFlightStateSave
 
  |args={{arg|Dictionary&#x3008;string, KSPParseable&#x3009;|partDataCollection}}
 
  |desc=Still under investigation. Probably when the game is saved mid-flight (quicksave).
 
}}
 
{{Method
 
  |returntype=virtual void
 
  |returndesc=
 
  |name=onGamePause
 
  |args=
 
  |desc=Called once any time the game is paused by calling the flight log, pressing Escape or other methods.
 
}}
 
{{Method
 
  |returntype=virtual void
 
  |returndesc=
 
  |name=onGameResume
 
  |args=
 
  |desc=Called once any time the game is unpaused by leaving the flight log, pressing Escape or other methods.
 
}}
 
{{Method
 
  |returntype=virtual string
 
  |returndesc=
 
  |name=OnGetStats
 
  |args=
 
  |desc=?
 
}}
 
{{Method
 
  |returntype=virtual void
 
  |returndesc=
 
  |name=onJointDisable
 
  |args=
 
  |desc=Still under investigation. Knowledge about Unity indicates probable call when joints are disabled on models with bones and animations.
 
}}
 
{{Method
 
  |returntype=virtual void
 
  |returndesc=
 
  |name=onJointReset
 
  |args=
 
  |desc=Still under investigation. Knowledge about Unity indicates probable call when joints are reset on models with bones and animations.
 
}}
 
{{Method
 
  |returntype=void
 
  |returndesc=
 
  |name=OnLiftOff
 
  |args=
 
  |desc=?
 
}}
 
{{Method
 
  |returntype=void
 
  |returndesc=
 
  |name=OnLoad
 
  |args=
 
  |desc=?
 
}}
 
{{Method
 
  |returntype=virtual void
 
  |returndesc=
 
  |name=OnLoad
 
  |args={{arg|ConfigNode|node}}
 
  |desc=?
 
}}
 
{{Method
 
  |returntype=virtual void
 
  |returndesc=
 
  |name=onPack
 
  |args=
 
  |desc=Still under investigation. Unknown. Name suggests either an archive part or parachute relation.
 
}}
 
{{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]]
 

Revision as of 17:44, 17 March 2017