25 float radius = 0.5f,
float height = 1.0f);
void setHeight(float height)
Sets the height of the cylindrical portion.
void setRadius(float radius)
Sets the radius of the capsule.
~CapsuleCollisionComponent() override=default
float getHeight() const
Gets the height of the cylindrical portion.
CapsuleCollisionComponent(Scene *scene, entt::entity entity, float radius=0.5f, float height=1.0f)
Constructs a CapsuleCollisionComponent.
btCollisionShape * createShape() override
Creates the Bullet collision shape. Must be implemented by derived classes.
float getRadius() const
Gets the radius of the capsule.
CollisionComponent(Scene *scene, entt::entity entity)
Constructs a CollisionComponent.
A scene is the overarching structure which can spawn actors.
Log category system implementation.