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

37 lines
831 B
C
Raw Normal View History

#pragma once
#include "BulletCollision/CollisionShapes/btSphereShape.h"
namespace simpleengine::physics::collision {
class SphereShape {
btSphereShape inner;
public:
SphereShape() = default;
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;
}
};
}