group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
CollisionShape.hpp File Reference

Collision shape component — AABB or vertical capsule. More...

#include <cmath>
#include <cstdint>
#include <glm/vec3.hpp>
Include dependency graph for CollisionShape.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CollisionShape
 Collision shape attached to an entity. More...

Enumerations

enum class  CollisionShapeType : uint8_t { AABB = 0 , Capsule = 1 }
 Which shape kind the entity uses for collision queries. More...

Detailed Description

Collision shape component — AABB or vertical capsule.

Enumeration Type Documentation

◆ CollisionShapeType

enum class CollisionShapeType : uint8_t
strong

Which shape kind the entity uses for collision queries.

Enumerator
AABB 

Axis-aligned box; uses halfExtents.

Capsule 

Vertical capsule (axis = +Y); uses radius + halfHeight.