3#include "Engine/Component/Collision/CollisionComponent.h"
23 float radius = 0.5f,
float height = 1.0f);
36 void debugDraw(
const glm::mat4& worldTransform)
const override;
void debugDraw(const glm::mat4 &worldTransform) const override
Draws debug visualization of the capsule.
CapsuleCollision(Entities::Scene *scene, entt::entity entity, float radius=0.5f, float height=1.0f)
Constructs a CapsuleCollisionComponent.
static constexpr const char * ComponentName
Component registry name.
~CapsuleCollision() override=default
Destroys the capsule collision component.
void setHeight(float height)
Sets the height of the cylindrical portion.
btCollisionShape * createShape() override
Creates the Bullet collision shape.
float getHeight() const
Gets the height of the cylindrical portion.
float getRadius() const
Gets the radius of the capsule.
void setRadius(float radius)
Sets the radius of the capsule.
Base class for collision shape components.
Owns scene entities, actor lifetime, and the scene graph root.