Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
ColliderComponent Struct Reference

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.

Detailed Description

Represents a collision volume (Sphere, Axis-Aligned Bounding Box, Oriented Bounding Box, or Capsule).

Member Data Documentation

◆ extents

glm::vec3 ColliderComponent::extents = glm::vec3(0.5f)

Half-extents vector for AABB and OBB colliders.

◆ height

float ColliderComponent::height = 2.0f

Total height (including hemispherical caps) for Capsule colliders.

◆ offset

glm::vec3 ColliderComponent::offset = glm::vec3(0.0f)

Local position offset relative to entity transform origin.

◆ radius

float ColliderComponent::radius = 1.0f

Radius used for Sphere and Capsule colliders.

◆ shape

ColliderShape ColliderComponent::shape = ColliderShape::AABB

Active primitive collision shape.


The documentation for this struct was generated from the following file: