257 auto it = this->entityMap.find(_entity);
258 if (it != this->entityMap.end())
260 this->reverseMap.erase(it->second);
261 this->physEntityById.erase(it->second->EntityID());
262 this->entityByPhysId.erase(it->second->EntityID());
263 this->castCache.erase(_entity);
264 this->entityMap.erase(it);
275 auto it = this->reverseMap.find(_physicsEntity);
276 if (it != this->reverseMap.end())
278 this->entityMap.erase(it->second);
279 this->physEntityById.erase(it->first->EntityID());
280 this->entityByPhysId.erase(it->first->EntityID());
281 this->castCache.erase(it->second);
282 this->reverseMap.erase(it);