struct
#include <engine/collisions/collider.hpp>
Collider Component which adds a collider to an entity.
Public variables
- glm::mat4 transform
- Transform of the collider.
-
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:: Collider:: 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.