Create and return a convex mesh shape * @param convexMesh A pointer to the convex mesh for this shape * @param scaling Scaling factor to scale the convex mesh if necessary * @return A pointer to the created convex mesh shape */
| 428 | * @return A pointer to the created convex mesh shape |
| 429 | */ |
| 430 | ConvexMeshShape* PhysicsCommon::createConvexMeshShape(ConvexMesh* convexMesh, const Vector3& scaling) { |
| 431 | |
| 432 | ConvexMeshShape* shape = new (mMemoryManager.allocate(MemoryManager::AllocationType::Pool, sizeof(ConvexMeshShape))) ConvexMeshShape(convexMesh, mMemoryManager.getHeapAllocator(), scaling); |
| 433 | |
| 434 | mConvexMeshShapes.add(shape); |
| 435 | |
| 436 | return shape; |
| 437 | } |
| 438 | |
| 439 | // Destroy a convex mesh shape |
| 440 | /** |