Skip to main content

CollisionContext.ixx File

Context data for collision events. More...

Included Headers

#include <optional> #include <helios.core.types> #include <helios.engine.ecs.EntityHandle> #include <helios.util> #include <helios.math>

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...

Classes Index

structCollisionContext

Context data describing a collision event. More...

Description

Context data for collision events.

File Listing

The file content with the documentation metadata removed is:

1/**
2 * @file CollisionContext.ixx
3 * @brief Context data for collision events.
4 */
5module;
6
7#include <optional>
8
9export module helios.engine.modules.physics.collision.types.CollisionContext;
10
11import helios.math;
12
13import helios.util;
14
15import helios.engine.ecs.EntityHandle;
16import helios.core.types;
17
19
20 /**
21 * @brief Context data describing a collision event.
22 *
23 * Contains all relevant information about a collision between two entities,
24 * including the entities involved, contact point, and collision properties.
25 */
27
28 /**
29 * @brief Handle of the source entity that initiated the collision check.
30 */
32
33 /**
34 * @brief World-space contact point of the collision.
35 */
37
38 /**
39 * @brief True if the collision involves a solid (blocking) entity.
40 */
41 bool isSolid;
42
43 /**
44 * @brief True if this is a trigger collision (non-blocking).
45 */
47
48 /**
49 * @brief True if the source entity reports collision events.
50 */
52
53 /**
54 * @brief Handle of the other entity involved in the collision.
55 *
56 * May be empty if the collision is with a non-entity object (e.g., world bounds).
57 */
58 std::optional<helios::engine::ecs::EntityHandle> other;
59
60 /**
61 * @brief Collision layer ID of the source entity.
62 */
64
65 /**
66 * @brief Collision layer ID of the other entity.
67 */
69
70 };
71
72}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.