4#include <btBulletDynamicsCommon.h>
9 const glm::vec3& halfExtents)
void setHalfExtents(const glm::vec3 &halfExtents)
Sets the half extents of the box.
BoxCollisionComponent(Scene *scene, entt::entity entity, const glm::vec3 &halfExtents=glm::vec3(0.5f))
Constructs a BoxCollisionComponent.
btCollisionShape * createShape() override
Creates the Bullet collision shape. Must be implemented by derived classes.
CollisionComponent(Scene *scene, entt::entity entity)
Constructs a CollisionComponent.
void markDirty()
Marks the shape as needing rebuild. Call after changing shape properties (halfExtents,...
A scene is the overarching structure which can spawn actors.
Log category system implementation.
btVector3 getVec3(glm::vec3 v)