MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / remove

Method remove

deps/physx/physx/source/physxextensions/src/ExtCollection.cpp:82–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82void PxCollectionExt::remove(PxCollection& collection, PxType concreteType, PxCollection* to)
83{
84 shdfnd::Array<PxBase*> removeObjects;
85
86 for (PxU32 i = 0; i < collection.getNbObjects(); i++)
87 {
88 PxBase& object = collection.getObject(i);
89 if(concreteType == object.getConcreteType())
90 {
91 if(to)
92 to->add(object);
93
94 removeObjects.pushBack(&object);
95 }
96 }
97
98 for (PxU32 i = 0; i < removeObjects.size(); ++i)
99 collection.remove(*removeObjects[i]);
100}
101
102PxCollection* PxCollectionExt::createCollection(PxPhysics& physics)
103{

Callers 3

releaseObjectsMethod · 0.45
isSerializableMethod · 0.45

Calls 6

getObjectMethod · 0.80
getNbObjectsMethod · 0.45
getConcreteTypeMethod · 0.45
addMethod · 0.45
pushBackMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected