cubos::engine::ColliderAABB struct

Component which adds an collider AABB to an entity.

Added automatically when any collision shape is added to the entity.

Public variables

core::geom::AABB localAABB
Local space AABB of the collider.
core::geom::AABB worldAABB
World space AABB of the collider.
float margin
Margin of the collider.

Variable documentation

float cubos::engine::ColliderAABB::margin

Margin of the collider.

When the collider shape has sharp edges, a margin is needed. The plugin will set it based on the shape associated with the collider.