|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
Represents a collision volume (Sphere, Axis-Aligned Bounding Box, Oriented Bounding Box, or Capsule). More...
#include <Collider.hpp>
Public Attributes | |
| ColliderShape | shape = ColliderShape::AABB |
| Active primitive collision shape. | |
| float | radius = 1.0f |
| Radius used for Sphere and Capsule colliders. | |
| float | height = 2.0f |
| Total height (including hemispherical caps) for Capsule colliders. | |
| glm::vec3 | extents = glm::vec3(0.5f) |
| Half-extents vector for AABB and OBB colliders. | |
| glm::vec3 | offset = glm::vec3(0.0f) |
| Local position offset relative to entity transform origin. | |
Represents a collision volume (Sphere, Axis-Aligned Bounding Box, Oriented Bounding Box, or Capsule).
| glm::vec3 ColliderComponent::extents = glm::vec3(0.5f) |
Half-extents vector for AABB and OBB colliders.
| float ColliderComponent::height = 2.0f |
Total height (including hemispherical caps) for Capsule colliders.
| glm::vec3 ColliderComponent::offset = glm::vec3(0.0f) |
Local position offset relative to entity transform origin.
| float ColliderComponent::radius = 1.0f |
Radius used for Sphere and Capsule colliders.
| ColliderShape ColliderComponent::shape = ColliderShape::AABB |
Active primitive collision shape.