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

Method SphereShape

src/collision/shapes/SphereShape.cpp:39–42  ·  view source on GitHub ↗

Constructor * @param radius Radius of the sphere */

Source from the content-addressed store, hash-verified

37 * @param radius Radius of the sphere
38 */
39SphereShape::SphereShape(decimal radius, MemoryAllocator& allocator)
40 : ConvexShape(CollisionShapeName::SPHERE, CollisionShapeType::SPHERE, allocator, radius) {
41 assert(radius > decimal(0.0));
42}
43
44// Compute the transformed AABB of the collision shape given a transform
45/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected