SimApi Physics GetActorFromEntity 4

From SIMboxWiki
Jump to navigation Jump to search

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


    Returns A pointer to a PhysX actor, using non-unicode strings


    i_EntityID - The simulation entity id 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(1,"wheel01");
pHummerWheel01->setMass(100.0f); // sets the mass to 100Kg

    See Also

    SimApi Physics