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

Method BoxShape

src/collision/shapes/BoxShape.cpp:41–47  ·  view source on GitHub ↗

Constructor * @param halfExtents The vector with the three half-extents of the box */

Source from the content-addressed store, hash-verified

39 * @param halfExtents The vector with the three half-extents of the box
40 */
41BoxShape::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/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected