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)


    Returns A pointer to a PhysX actor, using unicode strings


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


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


    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