MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getPathNodeLength

Method getPathNodeLength

Engine/source/Verve/Torque3D/VMotion.cpp:143–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143F32 VTorque::getPathNodeLength( PathObjectType *pPath, const S32 &pNode )
144{
145 if ( !pPath )
146 {
147 // Sanity!
148 return false;
149 }
150
151 // Normalize Node Index.
152 S32 nodeIndex = pNode;
153 pPath->normalizeNodeIndex( nodeIndex );
154
155 // Fetch Node.
156 VPathNode *node = pPath->getNode( nodeIndex );
157
158 // Return Length.
159 return node->getLength();
160}
161
162void VTorque::attachPathObject( PathObjectType *pPath, SceneObjectType *pObject, const bool &pForward, const bool &pRelative, const S32 &pStartNodeIndex, const S32 &pEndNodeIndex, const String &pOrientation, const String &pOrientationData )
163{

Callers

nothing calls this directly

Calls 3

normalizeNodeIndexMethod · 0.45
getNodeMethod · 0.45
getLengthMethod · 0.45

Tested by

no test coverage detected