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

35 lines
803 B
C
Raw Normal View History

#pragma once
2022-11-11 05:01:17 +00:00
#include <bullet/BulletCollision/CollisionShapes/btSphereShape.h>
namespace simpleengine::physics::collision {
class SphereShape {
btSphereShape inner;
public:
SphereShape(btSphereShape inner) : inner(inner) {
}
SphereShape(const float& radius) : inner(btScalar(radius)) {
}
/**
* @brief Get the inner bullet sphere shape object as a pointer.
*
* @return btSphereShape*
*/
btSphereShape* get_inner_ptr() {
return &inner;
}
/**
* @brief Get the inner bullet sphere shape object as a reference.
*
* @return btSphereShape&
*/
btSphereShape& get_inner() {
return inner;
}
};
}