| 60 | } |
| 61 | |
| 62 | void Collection::remove(PxBase& object) |
| 63 | { |
| 64 | PX_CHECK_AND_RETURN(contains(object), "PxCollection::remove called for an object not contained in the collection!"); |
| 65 | |
| 66 | const ObjectToIdMap::Entry* e = mObjects.find(&object); |
| 67 | if(e) |
| 68 | { |
| 69 | mIds.erase(e->second); |
| 70 | mObjects.erase(&object); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | bool Collection::contains(PxBase& object) const |
| 75 | { |
no test coverage detected