R-Type 0.1
Loading...
Searching...
No Matches
component::AABBCollider Struct Reference

Axis aligned bounding box used for collision detection. More...

#include <components/AABBCollider.hpp>

Public Attributes

float offsetX = 0.f
 Box offset from the entity position on x.
 
float offsetY = 0.f
 Box offset from the entity position on y.
 
float width = 0.f
 Box width before scaling.
 
float height = 0.f
 Box height before scaling.
 
std::uint32_t layer = 1
 Layers this collider belongs to.
 
std::uint32_t mask = 0xFFFFFFFF
 Layers this collider reacts to.
 
bool trigger = true
 Reports overlaps without physical response.
 

Detailed Description

Axis aligned bounding box used for collision detection.