Constructor * @param halfExtents The vector with the three half-extents of the box */
| 39 | * @param halfExtents The vector with the three half-extents of the box |
| 40 | */ |
| 41 | BoxShape::BoxShape(const Vector3& halfExtents, MemoryAllocator& allocator, PhysicsCommon& physicsCommon) |
| 42 | : ConvexPolyhedronShape(CollisionShapeName::BOX, allocator), mHalfExtents(halfExtents), mPhysicsCommon(physicsCommon) { |
| 43 | |
| 44 | assert(halfExtents.x > decimal(0.0)); |
| 45 | assert(halfExtents.y > decimal(0.0)); |
| 46 | assert(halfExtents.z > decimal(0.0)); |
| 47 | } |
| 48 | |
| 49 | // Return the local inertia tensor of the collision shape |
| 50 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected