MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / deletePhysicsWorld

Method deletePhysicsWorld

src/engine/PhysicsCommon.cpp:257–264  ·  view source on GitHub ↗

Delete an instance of PhysicsWorld * @param world A pointer to the physics world to destroy */

Source from the content-addressed store, hash-verified

255 * @param world A pointer to the physics world to destroy
256 */
257void 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/**

Callers

nothing calls this directly

Calls 2

~PhysicsWorldMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected