Delete an instance of PhysicsWorld * @param world A pointer to the physics world to destroy */
| 255 | * @param world A pointer to the physics world to destroy |
| 256 | */ |
| 257 | void PhysicsCommon::deletePhysicsWorld(PhysicsWorld* world) { |
| 258 | |
| 259 | // Call the destructor of the world |
| 260 | world->~PhysicsWorld(); |
| 261 | |
| 262 | // Release allocated memory |
| 263 | mMemoryManager.release(MemoryManager::AllocationType::Heap, world, sizeof(PhysicsWorld)); |
| 264 | } |
| 265 | |
| 266 | // Create and return a sphere collision shape |
| 267 | /** |
nothing calls this directly
no test coverage detected