22 const glm::vec3 & halfExtents = glm::vec3( 0.5f )
33 void debugDraw(
const glm::mat4& worldTransform)
const override;
BoxCollision(Entities::Scene *scene, entt::entity entity, const glm::vec3 &halfExtents=glm::vec3(0.5f))
Constructs a BoxCollisionComponent.
glm::vec3 getHalfExtents() const
Gets the half extents of the box.
void setHalfExtents(const glm::vec3 &halfExtents)
Sets the half extents of the box.
static constexpr const char * ComponentName
void debugDraw(const glm::mat4 &worldTransform) const override
Draws debug visualization of the box.
btCollisionShape * createShape() override
Creates the Bullet collision shape. Must be implemented by derived classes.
~BoxCollision() override=default
Base class for collision shape components.
A scene is the overarching structure which can spawn, contain and destroy actors or entities.