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

Method getLocalBounds

src/collision/shapes/CapsuleShape.cpp:90–94  ·  view source on GitHub ↗

Return the local bounds of the shape in x, y and z directions This method is used to compute the AABB of the box * @return The AABB of the shape */

Source from the content-addressed store, hash-verified

88 * @return The AABB of the shape
89 */
90AABB CapsuleShape::getLocalBounds() const {
91
92 return AABB(Vector3(-mMargin, -mHalfHeight - mMargin, -mMargin),
93 Vector3(mMargin, mHalfHeight + mMargin, mMargin));
94}
95
96// Raycast method with feedback information
97bool CapsuleShape::raycast(const Ray& ray, RaycastInfo& raycastInfo, Collider* collider, MemoryAllocator& /*allocator*/) const {

Callers

nothing calls this directly

Calls 2

AABBClass · 0.50
Vector3Class · 0.50

Tested by

no test coverage detected