3#include <btBulletDynamicsCommon.h>
15 return new btSphereShape(
radius_);
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.
SphereCollisionComponent(Scene *scene, entt::entity entity, float radius=0.5f)
Constructs a SphereCollisionComponent.
btCollisionShape * createShape() override
Creates the Bullet collision shape. Must be implemented by derived classes.
void setRadius(float radius)
Sets the radius of the sphere.
Log category system implementation.