| 141 | } |
| 142 | |
| 143 | F32 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 | |
| 162 | void 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 | { |
nothing calls this directly
no test coverage detected