Skip to main content

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.

Constructors​

MemberWhat it is
RopeNode()Creates an UltimateRope.RopeNode with default values.

Fields​

MemberWhat it is
bool bFoldInspector option, true by default. Not read anywhere in this build.
bool bInitialOrientationInitializedTrue once the node's starting local position, rotation and scale have been recorded.
bool bIsCoilTrue if this node is the coil (spool) end. Coil links are skipped when checking joint breaks.
bool bSegmentBrokenTrue once a joint in this segment has broken.
UltimateRope.EColliderType eColliderTypeCollider shape for the links (capsule by default).
float fLengthLength of this segment in world units (5 by default).
float fTotalLengthThis segment's length including any extensible length added to the last node.
GameObject goNodeThe GameObject this node is attached to.
bool[] linkJointBreaksProcessedPer joint, whether its break has already been handled.
ConfigurableJoint[] linkJointsThe joints between the links of this segment. A null entry means that joint broke.
bool m_bExtensionInitializedWhether the extensible part of the last segment has been set up.
float m_fExtensionRemainderInLeftover extension length on the inward side, used while extending the rope.
float m_fExtensionRemainderOutLeftover extension length on the outward side, used while extending the rope.
float m_fExtensionRemainingLengthExtensible length not yet let out.
int m_nExtensionLinkInIndex of the first extension link currently in use.
int m_nExtensionLinkOutIndex of the last extension link still held back.
Vector3 m_v3LocalDirectionForwardDirection from this node toward the next, in the rope's local space.
Vector3 m_v3LocalDirectionUpUp direction for the node in the rope's local space.
int nColliderSkipHow many links to skip between colliders (1 by default, so every other link).
int nNumLinksNumber of links in this segment (20 by default).
int nTotalLinksNumber of links including the extra ones made for an extensible rope.
Quaternion qInitialLocalRotLocal rotation recorded at start, restored on reset.
GameObject[] segmentLinksThe link GameObjects in this segment.
Vector3 v3InitialLocalPosLocal position recorded at start, restored on reset.
Vector3 v3InitialLocalScaleLocal scale recorded at start.

Used in​

Members of other types that take, return or hold a RopeNode: