ChaseSystem Class
System that steers entities towards their chase targets. 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 |
|
Updates steering for all chasing entities. More... | |
Description
System that steers entities towards their chase targets.
Processes all entities with ChaseComponent, SteeringComponent, and TranslationStateComponent. Updates steering intent to face the target entity based on a cooldown timer.
The system: 1. Finds the target entity by handle 2. Waits for the cooldown timer to expire 3. Calculates direction from entity to target 4. Sets steering intent to face that direction
Definition at line 48 of file ChaseSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 53 of file ChaseSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Updates steering for all chasing entities.
- Parameters
-
updateContext Context providing delta time and game world access.
Definition at line 59 of file ChaseSystem.ixx.
References helios::math::EPSILON_LENGTH, helios::math::vec3< T >::normalize and helios::engine::modules::spatial::transform::components::TranslationStateComponent::translation.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.