2022-11-11 00:07:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-11-11 05:01:17 +00:00
|
|
|
#include <bullet/BulletCollision/CollisionShapes/btCapsuleShape.h>
|
2022-11-11 00:07:05 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|