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

Method PhysicsCommon

src/engine/PhysicsCommon.cpp:41–53  ·  view source on GitHub ↗

Constructor * @param baseMemoryAllocator Pointer to a user custom memory allocator */

Source from the content-addressed store, hash-verified

39 * @param baseMemoryAllocator Pointer to a user custom memory allocator
40 */
41PhysicsCommon::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
56PhysicsCommon::~PhysicsCommon() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected