SimpleEngine/include/simpleengine/physics/collision/capsule_shape.h

35 lines
816 B
C
Raw Permalink Normal View History

#pragma once
2022-11-20 18:08:12 +00:00
#include <BulletCollision/CollisionShapes/btCapsuleShape.h>
namespace simpleengine::physics::collision {
class CapsuleShape {
btCapsuleShape inner;
public:
CapsuleShape(btCapsuleShape inner) : inner(inner) {
}
CapsuleShape(const float& radius, const float& height) : inner(radius, height) {
}
/**
* @brief Get the inner bullet capsule shape object as a pointer.
*
* @return btCapsuleShape*
*/
btCapsuleShape* get_inner_ptr() {
return &inner;
}
/**
* @brief Get the inner bullet capsule shape object as a reference.
*
* @return btCapsuleShape&
*/
btCapsuleShape& get_inner() {
return inner;
}
};
}