3#include <btBulletDynamicsCommon.h>
8 float radius,
float height)
void setHeight(float height)
Sets the height of the cylindrical portion.
void setRadius(float radius)
Sets the radius of the capsule.
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.
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.