UltimateRope.RopeNode
A class in Root.Township, the global namespace.
One node of a rope in the third-party Ultimate Rope physics component: a target GameObject and the chain of linked segments and joints running to it.
- Listed in Global namespace: T to X
- Nested in
UltimateRope
Constructors
| Member | What it is |
|---|---|
RopeNode() | Creates an UltimateRope.RopeNode with default values. |
Fields
| Member | What it is |
|---|---|
bool bFold | Inspector option, true by default. Not read anywhere in this build. |
bool bInitialOrientationInitialized | True once the node's starting local position, rotation and scale have been recorded. |
bool bIsCoil | True if this node is the coil (spool) end. Coil links are skipped when checking joint breaks. |
bool bSegmentBroken | True once a joint in this segment has broken. |
UltimateRope.EColliderType eColliderType | Collider shape for the links (capsule by default). |
float fLength | Length of this segment in world units (5 by default). |
float fTotalLength | This segment's length including any extensible length added to the last node. |
GameObject goNode | The GameObject this node is attached to. |
bool[] linkJointBreaksProcessed | Per joint, whether its break has already been handled. |
ConfigurableJoint[] linkJoints | The joints between the links of this segment. A null entry means that joint broke. |
bool m_bExtensionInitialized | Whether the extensible part of the last segment has been set up. |
float m_fExtensionRemainderIn | Leftover extension length on the inward side, used while extending the rope. |
float m_fExtensionRemainderOut | Leftover extension length on the outward side, used while extending the rope. |
float m_fExtensionRemainingLength | Extensible length not yet let out. |
int m_nExtensionLinkIn | Index of the first extension link currently in use. |
int m_nExtensionLinkOut | Index of the last extension link still held back. |
Vector3 m_v3LocalDirectionForward | Direction from this node toward the next, in the rope's local space. |
Vector3 m_v3LocalDirectionUp | Up direction for the node in the rope's local space. |
int nColliderSkip | How many links to skip between colliders (1 by default, so every other link). |
int nNumLinks | Number of links in this segment (20 by default). |
int nTotalLinks | Number of links including the extra ones made for an extensible rope. |
Quaternion qInitialLocalRot | Local rotation recorded at start, restored on reset. |
GameObject[] segmentLinks | The link GameObjects in this segment. |
Vector3 v3InitialLocalPos | Local position recorded at start, restored on reset. |
Vector3 v3InitialLocalScale | Local scale recorded at start. |
Used in
Members of other types that take, return or hold a RopeNode: