Skip to main content

systems Folder

Files Index

filehelios/engine/modules/ai/systems/_module.ixx

Aggregate module for helios::engine::modules::ai::systems namespace. More...

fileChaseSystem.ixx

System for updating entity steering to chase targets. More...

Description

helios::engine::modules::ai::systems

AI behavior processing systems.

Overview

Systems that process AI components and update entity behavior. Registered with the GameLoop and executed during the appropriate phase.

Systems

SystemPurpose
ChaseSystemSteers entities towards their chase targets

ChaseSystem

Processes entities with ChaseComponent, SteeringComponent, and TranslationStateComponent.

Behavior

1. Target Resolution: Looks up target entity by handle 2. Timer Update: Advances cooldown timer by delta time 3. Cooldown Check: Only updates direction when timer exceeds cooldown 4. Direction Calculation: Computes normalized vector from entity to target 5. Steering Update: Sets steering intent to face calculated direction

Required Components

ComponentPurpose
ChaseComponentTarget handle and timing configuration
SteeringComponentReceives steering intent updates
TranslationStateComponentProvides current entity position

Registration

 import helios.engine.modules.ai.systems;
 
 // Register with GameLoop main phase
 gameLoop.addSystem<ChaseSystem>(Phase::Main, gameWorld);

Related Modules

ModulePurpose
helios.engine.modules.ai.componentsChaseComponent data
helios.engine.modules.physics.motionSteeringComponent
helios.engine.modules.spatial.transformTranslationStateComponent


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.