Enumerator |
---|
NoJoint |
|
Park |
|
Neutral |
|
Drive |
|
Enumerator |
---|
Motor |
|
Pivot |
|
Piston |
|
Creates an instance of ModuleJoint to handle the connection at a given attachment node.
- Parameters
-
jointOwnerPart | The IActivePartHost-implementing module that will host this instance (you). |
refNodeId | The id of the attachment node to target. Pass an empty string to target the parent part joint instead of a node. Pass null to cause a bug. |
- Returns
- The active joint instance.
void ActiveJoint.DrawDebug |
( |
| ) |
|
|
inline |
< draw current rot (from target local space)
< draw cross vector between them
< draw the joint axis
Vector3 ActiveJoint.getControlOrt |
( |
Vector3 |
refAxis, |
|
|
PartSpaceMode |
mode |
|
) |
| |
|
inlineprotected |
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
- Returns
Vector3 ActiveJoint.getControlPos |
( |
Vector3 |
refPos, |
|
|
PartSpaceMode |
mode |
|
) |
| |
|
inlineprotected |
Vector3 ActiveJoint.GetCtrlAxis |
( |
| ) |
|
|
inlineprotected |
Vector3 ActiveJoint.getInvControlOrt |
( |
Vector3 |
refAxis, |
|
|
PartSpaceMode |
mode |
|
) |
| |
|
inlineprotected |
Vector3 ActiveJoint.getInvControlPos |
( |
Vector3 |
refPos, |
|
|
PartSpaceMode |
mode |
|
) |
| |
|
inlineprotected |
JointDrive ActiveJoint.GetJointDrive |
( |
| ) |
|
|
inlineprotected |
void ActiveJoint.InitJoint |
( |
| ) |
|
|
inlineprotected |
virtual void ActiveJoint.onJointInit |
( |
bool |
jointExists | ) |
|
|
inlineprotectedvirtual |
void ActiveJoint.restartJoint |
( |
| ) |
|
|
inlineprotected |
void ActiveJoint.SetAxis |
( |
Transform |
srcSpace, |
|
|
Vector3 |
axis |
|
) |
| |
|
inline |
void ActiveJoint.SetJointDrive |
( |
JointDrive |
drive | ) |
|
|
inline |
void ActiveJoint.SetSecondaryAxis |
( |
Transform |
srcSpace, |
|
|
Vector3 |
secondAxis |
|
) |
| |
|
inline |
void ActiveJoint.startForRefNode |
( |
string |
jointNodeName | ) |
|
|
inlineprotected |
void ActiveJoint.Terminate |
( |
| ) |
|
|
inline |
Ends all active joint operations. Clears listeners and detaches from joint. Does not destroy the joint itself.
Vector3 ActiveJoint.activeAxis |
|
protected |
initial and end orientations for measuring motor angles (in vessel space)
Vector3 ActiveJoint.anchor |
|
protected |
Vector3 ActiveJoint.ctrlAxis |
|
protected |
the axis around which the joint rotates. For motors, it will be the joint's primary axis.
accumulated offset from the joint tgt pos
Quaternion ActiveJoint.dRot |
|
protected |
accumulated rotation from the joint's tgt rot and angular speed
Part ActiveJoint.hostPart |
|
protected |
A reference to the part that contains the moduleHost, not to be confused with PartJoint's host.
Vector3 ActiveJoint.initOrt |
|
protected |
Quaternion ActiveJoint.jointRot0 |
|
protected |
float ActiveJoint.lastAngle |
|
protected |
Vector3 ActiveJoint.lastDPos |
|
protected |
Quaternion ActiveJoint.lastDRot |
|
protected |
float ActiveJoint.maxJointDamper = 1e20f |
the drive that is being modified on this joint.
JointDrive ActiveJoint.targetDrive |
bool ActiveJoint.targetParent |
|
protected |
ConfigurableJoint ActiveJoint.joint |
|
getset |
The documentation for this class was generated from the following file: