CollisionStateResponseSystem Class
System that processes collision states and executes configured behaviors. More...
Declaration
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Member Functions Index
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Processes collision states and issues response commands. More... | |
Description
System that processes collision states and executes configured behaviors.
This system reads the CollisionStateComponent of each entity to determine how to respond to detected collisions. Based on the configured CollisionBehavior, the system issues appropriate commands (e.g., DespawnCommand for entities marked with Despawn behavior).
The system requires entities to have both a CollisionStateComponent (for collision data) and a SpawnedByProfileComponent.
Supported behaviors:
- **Despawn:** Issues a DespawnCommand to return the entity to its object pool.
This system should run after collision detection but before collision state clearing.
Definition at line 61 of file CollisionStateResponseSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 65 of file CollisionStateResponseSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Processes collision states and issues response commands.
Iterates over all entities with CollisionStateComponent and PoolIdComponent. For entities with active collisions, reads the collision behavior and issues appropriate commands and/or events.
- Parameters
-
updateContext Context providing access to the command buffer and world.
Definition at line 76 of file CollisionStateResponseSystem.ixx.
References helios::engine::modules::physics::collision::types::Despawn, helios::engine::modules::physics::collision::types::hasFlag and helios::engine::modules::physics::collision::types::PassEvent.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.