SimApi Physics GetActorFromEntity 2

From SIMboxWiki
Jump to navigation Jump to search

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


    Returns A pointer to a PhysX actor, using non-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("Hummer 1","wheel01");
pHummerWheel01->setMass(100.0f); // sets the mass to 100Kg

    See Also

    SimApi Physics