Gems/EMotionFX/Code/EMotionFX/Source/Skeleton.cpp
size_t Skeleton::CalcHierarchyDepthForNode(size_t nodeIndex) const
    {
        size_t result = 0;
        const Node* curNode = m_nodes[nodeIndex];
        while (curNode->GetParentNode())
        {
            result++;
            curNode = curNode->GetParentNode();
        }

        return result;
    }
// calculate the hierarchy depth for a given node
calculate the hierarchy depth for a given node
calculate the hierarchy depth for a given node
size_t Skeleton::CalcHierarchyDepthForNode(size_t nodeIndex) const
    {
        size_t result = 0;
        const Node* curNode = m_nodes[nodeIndex];
        while (curNode->GetParentNode())
        {
            result++;
            curNode = curNode->GetParentNode();
        }
        return result;
    }
size_t Skeleton :: CalcHierarchyDepthForNode ( size_t nodeIndex ) const { size_t result = 0 ; const Node * curNode = m_nodes [ nodeIndex ] ; while ( curNode -> GetParentNode ( ) ) { result ++ ; curNode = curNode -> GetParentNode ( ) ; } return result ; }
calculate the hierarchy depth for a given node
calculate the hierarchy depth for a given node