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 */
| 88 | * @return The AABB of the shape |
| 89 | */ |
| 90 | AABB 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 |
| 97 | bool CapsuleShape::raycast(const Ray& ray, RaycastInfo& raycastInfo, Collider* collider, MemoryAllocator& /*allocator*/) const { |