SimApi Physics GetActorFromEntity 1

From SIMboxWiki
Jump to navigation Jump to search

Icon attributes.pngstatic NxActor* SimApi::Physics::GetActorFromEntity(const wstring &i_EntityName, const wstring &i_ActorName)

    Description

    Returns A pointer to a PhysX actor, using unicode strings

    Parameters

    i_EntityName - The simulation entity name the actor is searched in
    i_ActorName - The actor name

    Return

    Type: NxActor *   Description: A pointer to a PhysX actor. NULL if the actor does not exist

    Remarks
    



    Code Sample
    

NxActor* pHummerWheel01 = SimApi::Physics::GetActorFromEntity(L"Hummer 1",L"wheel01");
pHummerWheel01->setMass(100.0f); // sets the mass to 100Kg


    See Also

    SimApi Physics