| 103 | } |
| 104 | |
| 105 | PxBase* Collection::find(PxSerialObjectId id) const |
| 106 | { |
| 107 | PX_CHECK_AND_RETURN_NULL(id != PX_SERIAL_OBJECT_ID_INVALID, "PxCollection::find called with PxSerialObjectId being set to PX_SERIAL_OBJECT_ID_INVALID!"); |
| 108 | const IdToObjectMap::Entry* e = mIds.find(id); |
| 109 | return e ? static_cast<PxBase*>(e->second) : NULL; |
| 110 | } |
| 111 | |
| 112 | void Collection::add(PxCollection& _collection) |
| 113 | { |