![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Bounding box component for collision detection. More...
#include <ECS_Components.h>
Public Member Functions | |
| BoundingBox_data ()=default | |
| Default constructor. | |
| BoundingBox_data (SDL_FRect rect) | |
| Construct with bounding box. | |
| BoundingBox_data (const BoundingBox_data &)=default | |
| Copy constructor. | |
| BoundingBox_data & | operator= (const BoundingBox_data &)=default |
| Copy assignment operator. | |
Public Attributes | |
| SDL_FRect | boundingBox = {0.f, 0.f, 25.f, 25.f} |
| Collision rectangle. | |
Bounding box component for collision detection.
Defines rectangular collision area for the entity.
Definition at line 167 of file ECS_Components.h.
|
default |
Default constructor.
|
inline |
Construct with bounding box.
| rect | SDL rectangle for collision bounds |
Definition at line 179 of file ECS_Components.h.
|
default |
Copy constructor.
|
default |
Copy assignment operator.
Collision rectangle.
Definition at line 170 of file ECS_Components.h.
Referenced by PrefabFactory::InstantiateBoundingBox(), RenderEntitiesForCamera(), UIRenderingSystem::RenderHUD(), and RenderSingleEntity().