CollisionShapeType
Which shape kind the entity uses for collision queries.
Definition CollisionShape.hpp:12
@ AABB
Axis-aligned box; uses halfExtents.
Definition CollisionShape.hpp:13
@ Capsule
Vertical capsule (axis = +Y); uses radius + halfHeight.
Definition CollisionShape.hpp:14
Collision shape attached to an entity.
Definition CollisionShape.hpp:34
float halfHeight
Capsule cylinder half-height (excludes spherical caps).
Definition CollisionShape.hpp:48
CollisionShapeType type
Which kind of shape this is — selects the runtime collision path.
Definition CollisionShape.hpp:36
float radius
Capsule cylinder radius. Unused when type == AABB.
Definition CollisionShape.hpp:44
glm::vec3 halfExtents
AABB half-dimensions.
Definition CollisionShape.hpp:41
float minkowskiExtent(const glm::vec3 &n) const noexcept
Minkowski extent of the shape along a unit direction n.
Definition CollisionShape.hpp:54