MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / removeActor

Method removeActor

physx/samples/samplebase/PhysXSample.cpp:2546–2556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2544//////////////////////////////////////////////////////////////////////////
2545
2546void PhysXSample::removeActor(PxRigidActor* actor)
2547{
2548 removeRenderActorsFromPhysicsActor(actor);
2549
2550 std::vector<PxRigidActor*>::iterator actorIter = std::find(mPhysicsActors.begin(), mPhysicsActors.end(), actor);
2551 if(actorIter != mPhysicsActors.end())
2552 {
2553 mPhysicsActors.erase(actorIter);
2554 actor->release();
2555 }
2556}
2557
2558///////////////////////////////////////////////////////////////////////////////
2559

Callers 2

destroyChunkMethod · 0.45
~CrabMethod · 0.45

Calls 4

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected