CollisionContext Struct
Context data describing a collision event. More...
Declaration
Public Member Attributes Index
| helios::engine::ecs::EntityHandle | source |
|
Handle of the source entity that initiated the collision check. More... | |
| helios::math::vec3f | contact |
|
World-space contact point of the collision. More... | |
| bool | isSolid |
|
True if the collision involves a solid (blocking) entity. More... | |
| bool | isTrigger |
|
True if this is a trigger collision (non-blocking). More... | |
| bool | isCollisionReporter |
|
True if the source entity reports collision events. More... | |
| std::optional< helios::engine::ecs::EntityHandle > | other |
|
Handle of the other entity involved in the collision. More... | |
| uint32_t | collisionLayerId |
|
Collision layer ID of the source entity. More... | |
| uint32_t | otherCollisionLayerId |
|
Collision layer ID of the other entity. More... | |
Description
Context data describing a collision event.
Contains all relevant information about a collision between two entities, including the entities involved, contact point, and collision properties.
Definition at line 26 of file CollisionContext.ixx.
Public Member Attributes
collisionLayerId
|
Collision layer ID of the source entity.
Definition at line 63 of file CollisionContext.ixx.
contact
|
World-space contact point of the collision.
Definition at line 36 of file CollisionContext.ixx.
isCollisionReporter
|
True if the source entity reports collision events.
Definition at line 51 of file CollisionContext.ixx.
isSolid
|
True if the collision involves a solid (blocking) entity.
Definition at line 41 of file CollisionContext.ixx.
isTrigger
|
True if this is a trigger collision (non-blocking).
Definition at line 46 of file CollisionContext.ixx.
other
|
Handle of the other entity involved in the collision.
May be empty if the collision is with a non-entity object (e.g., world bounds).
Definition at line 58 of file CollisionContext.ixx.
otherCollisionLayerId
|
Collision layer ID of the other entity.
Definition at line 68 of file CollisionContext.ixx.
source
|
Handle of the source entity that initiated the collision check.
Definition at line 31 of file CollisionContext.ixx.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.