SimApi Physics GetActorFromEntity 3
Jump to navigation
Jump to search
static NxActor* SimApi::Physics::GetActorFromEntity(const int i_EntityID, const wstring &i_ActorName)
Description
Returns A pointer to a PhysX actor, using unicode strings
Parameters
i_EntityID - The simulation entity id 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(1,L"wheel01");
pHummerWheel01->setMass(100.0f); // sets the mass to 100Kg
See Also
SimApi Physics