2022-11-11 00:07:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
2022-11-11 05:01:17 +00:00
|
|
|
#include <bullet/BulletCollision/CollisionShapes/btConeShape.h>
|
2022-11-11 00:07:05 +00:00
|
|
|
|
|
|
|
namespace simpleengine::physics::collision {
|
|
|
|
class ConeShape {
|
|
|
|
btConeShape inner;
|
|
|
|
public:
|
|
|
|
ConeShape(btConeShape inner) : inner(std::move(inner)) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
ConeShape(float radius, float height) : inner(radius, height) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-11-11 04:53:03 +00:00
|
|
|
/**
|
|
|
|
* @brief Get the inner bullet cone shape object as a pointer.
|
|
|
|
*
|
|
|
|
* @return btConeShape*
|
|
|
|
*/
|
|
|
|
btConeShape* get_inner_ptr() {
|
2022-11-11 00:07:05 +00:00
|
|
|
return &inner;
|
|
|
|
}
|
2022-11-11 04:53:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Get the inner bullet cone shape object as a reference.
|
|
|
|
*
|
|
|
|
* @return btConeShape&
|
|
|
|
*/
|
|
|
|
btConeShape& get_inner() {
|
|
|
|
return inner;
|
|
|
|
}
|
2022-11-11 00:07:05 +00:00
|
|
|
};
|
|
|
|
}
|