Constructor * @param baseMemoryAllocator Pointer to a user custom memory allocator */
| 39 | * @param baseMemoryAllocator Pointer to a user custom memory allocator |
| 40 | */ |
| 41 | PhysicsCommon::PhysicsCommon(MemoryAllocator* baseMemoryAllocator) |
| 42 | : mMemoryManager(baseMemoryAllocator), |
| 43 | mPhysicsWorlds(mMemoryManager.getHeapAllocator()), mSphereShapes(mMemoryManager.getHeapAllocator()), |
| 44 | mBoxShapes(mMemoryManager.getHeapAllocator()), mCapsuleShapes(mMemoryManager.getHeapAllocator()), |
| 45 | mConvexMeshShapes(mMemoryManager.getHeapAllocator()), mConcaveMeshShapes(mMemoryManager.getHeapAllocator()), |
| 46 | mHeightFieldShapes(mMemoryManager.getHeapAllocator()), mConvexMeshes(mMemoryManager.getHeapAllocator()), |
| 47 | mTriangleMeshes(mMemoryManager.getHeapAllocator()), mHeightFields(mMemoryManager.getHeapAllocator()), |
| 48 | mProfilers(mMemoryManager.getHeapAllocator()), mDefaultLoggers(mMemoryManager.getHeapAllocator()), |
| 49 | mBoxShapeHalfEdgeStructure(mMemoryManager.getHeapAllocator(), 6, 8, 24), |
| 50 | mTriangleShapeHalfEdgeStructure(mMemoryManager.getHeapAllocator(), 2, 3, 6) { |
| 51 | |
| 52 | init(); |
| 53 | } |
| 54 | |
| 55 | // Destructor |
| 56 | PhysicsCommon::~PhysicsCommon() { |
nothing calls this directly
no outgoing calls
no test coverage detected