23 float radius = 0.5f,
float height = 1.0f);
33 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
~CapsuleCollision() override=default
void setHeight(float height)
Sets the height of the cylindrical portion.
btCollisionShape * createShape() override
Creates the Bullet collision shape. Must be implemented by derived classes.
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.
A scene is the overarching structure which can spawn, contain and destroy actors or entities.