![]() |
Kerbal Space Program
1.12.4
|
Public Member Functions | |
| Vector3 | GetControlAxis (Vector3 refAxis) |
| Quaternion | GetLocalPivotRotation () |
| void | SetLocalPivotTgtRotation (Quaternion tgtRot) |
| void | SetPivotAngleLimit (float maxDegrees) |
Public Member Functions inherited from ActiveJoint | |
| void | DrawDebug () |
| void | Load (ConfigNode node) |
| void | Save (ConfigNode node) |
| void | SetAxis (Transform srcSpace, Vector3 axis) |
| bool | SetDriveMode (DriveMode m) |
| void | SetJointDrive (JointDrive drive) |
| void | SetSecondaryAxis (Transform srcSpace, Vector3 secondAxis) |
| void | Terminate () |
| Ends all active joint operations. Clears listeners and detaches from joint. Does not destroy the joint itself. More... | |
Static Public Member Functions | |
| static ActiveJointPivot | Create (IActiveJointHost moduleHost, string refNodeId) |
| static ActiveJointPivot | Create (IActiveJointHost moduleHost, AttachNode refNode) |
Static Public Member Functions inherited from ActiveJoint | |
| static ActiveJoint | Create (IActiveJointHost moduleHost, string refNodeId, JointMode function) |
| Creates an instance of ModuleJoint to handle the connection at a given attachment node. More... | |
| static ActiveJoint | Create (IActiveJointHost moduleHost, AttachNode refNode, JointMode function) |
Protected Member Functions | |
| override void | onJointInit (bool jointExists) |
Protected Member Functions inherited from ActiveJoint | |
| PartJoint | findJointAtNode (AttachNode node) |
| PartJoint | findJointBetweenParts (Part p1, Part p2) |
| Vector3 | getAnchorOffset (PartSpaceMode mode) |
| Vector3 | getControlOrt (Vector3 refAxis, PartSpaceMode mode) |
| Returns a reference vector that can be used to measure the angle after a part has been spun around by a rotating joint. Vector will be in target part's local space, use getInvControlOrt to transform that into host local space More... | |
| Vector3 | getControlPos (Vector3 refPos, PartSpaceMode mode) |
| Vector3 | GetCtrlAxis () |
| Vector3 | getInvControlOrt (Vector3 refAxis, PartSpaceMode mode) |
| Vector3 | getInvControlPos (Vector3 refPos, PartSpaceMode mode) |
| JointDrive | GetJointDrive () |
| void | InitJoint () |
| void | restartJoint () |
| void | startForRefNode (string jointNodeName) |
Additional Inherited Members | |
Public Types inherited from ActiveJoint | |
| enum | DriveMode { DriveMode.NoJoint, DriveMode.Park, DriveMode.Neutral, DriveMode.Drive } |
| enum | JointMode { JointMode.Motor, JointMode.Pivot, JointMode.Piston } |
Public Attributes inherited from ActiveJoint | |
| float | maxJointDamper = 1e20f |
| the drive that is being modified on this joint. More... | |
| JointDrive | targetDrive |
Protected Attributes inherited from ActiveJoint | |
| Vector3 | activeAxis |
| initial and end orientations for measuring motor angles (in vessel space) More... | |
| Vector3 | anchor |
| float | Angle |
| Vector3 | axis |
| Vector3 | ctrlAxis |
| the axis around which the joint rotates. For motors, it will be the joint's primary axis. More... | |
| Vector3 | dPos |
| accumulated offset from the joint tgt pos More... | |
| Quaternion | dRot |
| accumulated rotation from the joint's tgt rot and angular speed More... | |
| Part | hostPart |
| A reference to the part that contains the moduleHost, not to be confused with PartJoint's host. More... | |
| Vector3 | initOrt |
| Quaternion | jointRot0 |
| float | lastAngle |
| Vector3 | lastDPos |
| Quaternion | lastDRot |
| IActiveJointHost | moduleHost |
| AttachNode | refNode |
| bool | targetParent |
Properties inherited from ActiveJoint | |
| DriveMode | driveMode [get, set] |
| bool | isValid [get] |
| ConfigurableJoint | joint [get, set] |
| JointMode | jointMode [get, set] |
| PartJoint | pJoint [get, set] |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inlineprotectedvirtual |
Reimplemented from ActiveJoint.
|
inline |
|
inline |
1.8.7