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

Method removeActorAndReinsert

physx/source/physx/src/NpAggregate.cpp:193–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool NpAggregate::removeActorAndReinsert(PxActor& actor, bool reinsert)
194{
195 for(PxU32 i=0;i<mNbActors;i++)
196 {
197 if(mActors[i]==&actor)
198 {
199 mActors[i] = mActors[--mNbActors];
200 removeAndReinsert(actor, reinsert);
201 return true;
202 }
203 }
204 Ps::getFoundation().error(PxErrorCode::eDEBUG_WARNING, __FILE__, __LINE__, "PxAggregate: can't remove actor, actor doesn't belong to aggregate");
205 return false;
206}
207
208bool NpAggregate::removeActor(PxActor& actor)
209{

Callers 2

releaseMethod · 0.80
removeActorTFunction · 0.80

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected