Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | List of all members
IActiveJointHost Interface Reference
Inheritance diagram for IActiveJointHost:
ModuleGrappleNode ModuleJointMotorTest

Public Member Functions

Part GetHostPart ()
 Return an instance of the part. More...
 
Transform GetLocalTransform ()
 Return an instance of the module's transform. More...
 
void OnDriveModeChanged (ActiveJoint.DriveMode mode)
 Called when the drive mode of the joint changes. Use to keep track of the drive mode in case it changes for external reasons (like joint being destroyed, or vessel going on rails which sets the drive on Park) More...
 
void OnJointInit (ActiveJoint joint)
 Called whenever the activeJoint's joint is modified. Will be called when the joint is first started, when the joint is destroyed, and again if a new one is re-created. Use to toggle joint-dependent behaviour on the module. More...
 

Member Function Documentation

Part IActiveJointHost.GetHostPart ( )

Return an instance of the part.

Returns

Implemented in ModuleGrappleNode, and ModuleJointMotorTest.

Transform IActiveJointHost.GetLocalTransform ( )

Return an instance of the module's transform.

Returns

Implemented in ModuleGrappleNode, and ModuleJointMotorTest.

void IActiveJointHost.OnDriveModeChanged ( ActiveJoint.DriveMode  mode)

Called when the drive mode of the joint changes. Use to keep track of the drive mode in case it changes for external reasons (like joint being destroyed, or vessel going on rails which sets the drive on Park)

Parameters
mode

Implemented in ModuleGrappleNode, and ModuleJointMotorTest.

void IActiveJointHost.OnJointInit ( ActiveJoint  joint)

Called whenever the activeJoint's joint is modified. Will be called when the joint is first started, when the joint is destroyed, and again if a new one is re-created. Use to toggle joint-dependent behaviour on the module.

Parameters
jointa reference to the joint created, or null if the joint is lost

Implemented in ModuleGrappleNode, and ModuleJointMotorTest.


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