| 53 | } |
| 54 | |
| 55 | void PhysicsManager::removeBodyFree( Body* body ) { |
| 56 | if ( mMemoryManager ) { |
| 57 | auto foundIt = std::find( mBodysFree.begin(), mBodysFree.end(), body ); |
| 58 | if ( foundIt != mBodysFree.end() ) |
| 59 | mBodysFree.erase( foundIt ); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | void PhysicsManager::addShapeFree( Shape* shape ) { |
| 64 | if ( mMemoryManager ) { |