Create and return a concave mesh shape * @param triangleMesh A pointer to the triangle mesh to use to create the concave mesh shape * @param scaling An optional scaling factor to scale the triangle mesh * @return A pointer to the created concave mesh shape */
| 556 | * @return A pointer to the created concave mesh shape |
| 557 | */ |
| 558 | ConcaveMeshShape* PhysicsCommon::createConcaveMeshShape(TriangleMesh* triangleMesh, const Vector3& scaling) { |
| 559 | |
| 560 | ConcaveMeshShape* shape = new (mMemoryManager.allocate(MemoryManager::AllocationType::Pool, sizeof(ConcaveMeshShape))) ConcaveMeshShape(triangleMesh, |
| 561 | mMemoryManager.getHeapAllocator(), mTriangleShapeHalfEdgeStructure, scaling); |
| 562 | |
| 563 | mConcaveMeshShapes.add(shape); |
| 564 | |
| 565 | return shape; |
| 566 | } |
| 567 | |
| 568 | // Destroy a concave mesh shape |
| 569 | /** |