Gems/EMotionFX/Code/EMotionFX/CommandSystem/Source/ActorCommands.cpp
void PrepareExcludedNodesString(EMotionFX::Actor* actor, AZStd::string* outNodeNames)
    {
        // reset the resulting string
        outNodeNames->clear();
        outNodeNames->reserve(16384);

        // check if the actor is valid
        if (actor == nullptr)
        {
            return;
        }

        // get the number of nodes and iterate through them
        const size_t numNodes = actor->GetNumNodes();
        for (size_t i = 0; i < numNodes; ++i)
        {
            EMotionFX::Node* node = actor->GetSkeleton()->GetNode(i);

            if (node->GetIncludeInBoundsCalc() == false)
            {
                *outNodeNames += node->GetName();
                *outNodeNames += ";";
            }
        }

        // make sure there is no semicolon at the end
        AzFramework::StringFunc::Strip(*outNodeNames, MCore::CharacterConstants::semiColon, true /* case sensitive */, false /* beginning */, true /* ending */);
    }
// walk over the actor nodes and check which of them we want to exclude from the bounding volume calculations
walk over the actor nodes and check which of them we want to exclude from the bounding volume calculations
walk over the actor nodes and check which of them we want to exclude from the bounding volume calculations
void PrepareExcludedNodesString(EMotionFX::Actor* actor, AZStd::string* outNodeNames)
    {
        outNodeNames->clear();
        outNodeNames->reserve(16384);
        if (actor == nullptr)
        {
            return;
        }
        const size_t numNodes = actor->GetNumNodes();
        for (size_t i = 0; i < numNodes; ++i)
        {
            EMotionFX::Node* node = actor->GetSkeleton()->GetNode(i);
            if (node->GetIncludeInBoundsCalc() == false)
            {
                *outNodeNames += node->GetName();
                *outNodeNames += ";";
            }
        }
        AzFramework::StringFunc::Strip(*outNodeNames, MCore::CharacterConstants::semiColon, true , false , true );
    }
void PrepareExcludedNodesString ( EMotionFX :: Actor * actor , AZStd :: string * outNodeNames ) { outNodeNames -> clear ( ) ; outNodeNames -> reserve ( 16384 ) ; if ( actor == nullptr ) { return ; } const size_t numNodes = actor -> GetNumNodes ( ) ; for ( size_t i = 0 ; i < numNodes ; ++ i ) { EMotionFX :: Node * node = actor -> GetSkeleton ( ) -> GetNode ( i ) ; if ( node -> GetIncludeInBoundsCalc ( ) == false ) { * outNodeNames += node -> GetName ( ) ; * outNodeNames += " " ; } } AzFramework :: StringFunc :: Strip ( * outNodeNames , MCore :: CharacterConstants :: semiColon , true , false , true ) ; }
walk over the actor nodes and check which of them we want to exclude from the bounding volume calculations
walk over the actor nodes and check which of them we want to exclude from the bounding volume calculations
// reset the resulting string // check if the actor is valid // get the number of nodes and iterate through them // make sure there is no semicolon at the end /* case sensitive */ /* beginning */ /* ending */