Delete a convex mesh * @param convexMesh A pointer to the convex mesh to destroy */
| 687 | * @param convexMesh A pointer to the convex mesh to destroy |
| 688 | */ |
| 689 | void PhysicsCommon::deleteConvexMesh(ConvexMesh* convexMesh) { |
| 690 | |
| 691 | // Call the destructor of the shape |
| 692 | convexMesh->~ConvexMesh(); |
| 693 | |
| 694 | // Release allocated memory |
| 695 | mMemoryManager.release(MemoryManager::AllocationType::Pool, convexMesh, sizeof(ConvexMesh)); |
| 696 | } |
| 697 | |
| 698 | // Create a triangle mesh from a TriangleVertexArray |
| 699 | /// The data (vertices, faces indices) are copied from the TriangleVertexArray into the created ConvexMesh. |
nothing calls this directly
no test coverage detected