Skip to main content

CollisionResponse.ixx File

Enum for defining collision response behaviors. More...

Included Headers

#include <cstdint>

Namespaces Index

namespacehelios
namespaceengine

Main engine module aggregating core infrastructure and game systems. More...

namespacemodules

Domain-specific components and systems. More...

namespacephysics

Physics simulation and collision detection subsystem for the game engine. More...

namespacecollision
namespacetypes

Type definitions for collision system behavior configuration. More...

Description

Enum for defining collision response behaviors.

File Listing

The file content with the documentation metadata removed is:

1/**
2 * @file CollisionResponse.ixx
3 * @brief Enum for defining collision response behaviors.
4 */
5module;
6
7#include <cstdint>
8
9export module helios.engine.modules.physics.collision.types.CollisionResponse;
10
11
12
14
15 /**
16 * @brief Defines how an entity responds to a collision event.
17 *
18 * @details CollisionResponse is a bitmask enum that specifies the behavior
19 * when a collision is detected.
20 *
21 * @see CollisionComponent
22 */
23 enum class CollisionResponse : uint8_t {
24
25 /**
26 * @brief No collision response; collision is ignored.
27 */
28 None = 0,
29
30 /**
31 * @brief Aligns the entity's heading direction upon collision.
32 *
33 * @details Aligns the heading of the object to the the movement direction, typically used for bouncing or reflecting projectiles off surfaces.
34 */
36
37 /**
38 * @brief Sentinel value indicating the number of response types.
39 */
40 size_ = 2
41 };
42
43
44
45}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.