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

Method deleteHeightField

src/engine/PhysicsCommon.cpp:763–770  ·  view source on GitHub ↗

Delete a height-field * @param heightField A pointer to the height-field to destroy */

Source from the content-addressed store, hash-verified

761 * @param heightField A pointer to the height-field to destroy
762 */
763void PhysicsCommon::deleteHeightField(HeightField* heightField) {
764
765 // Call the destructor of the shape
766 heightField->~HeightField();
767
768 // Release allocated memory
769 mMemoryManager.release(MemoryManager::AllocationType::Pool, heightField, sizeof(HeightField));
770}
771
772// Create and return a new logger
773/**

Callers

nothing calls this directly

Calls 2

~HeightFieldMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected