ai Folder
Folders Index
| folder | components |
| folder | systems |
Files Index
| file | helios/engine/modules/ai/_module.ixx |
|
Aggregate module for helios::engine::modules::ai namespace. More... | |
| file | modules/ai/registry.ixx |
|
Component registration for AI module. More... | |
Description
helios::engine::modules::ai
AI behavior modules for game entities in the helios engine.
Overview
This module provides components and systems for artificial intelligence behaviors. Currently focused on simple pursuit/chase mechanics, with architecture designed for expansion to more complex AI patterns.
Submodules
components/
Data components storing AI behavior state:
| Component | Purpose |
|---|---|
| ChaseComponent | Tracks a target entity and controls pursuit timing |
systems/
Systems that process AI components:
| System | Purpose |
|---|---|
| ChaseSystem | Steers entities towards their chase targets |
Usage
Basic Chase Behavior
Using with GameObjectFactory
Chase Behavior Details
The ChaseSystem operates as follows:
1. Target Lookup: Finds target entity by handle in GameWorld 2. Cooldown Check: Only updates direction after cooldown expires 3. Direction Calculation: Computes normalized vector from entity to target 4. Steering Update: Sets steering intent to face target direction
Component Dependencies
| Component | Required Companions |
|---|---|
| ChaseComponent | SteeringComponent, TranslationStateComponent |
Related Modules
| Module | Purpose |
|---|---|
| helios.engine.modules.physics.motion | SteeringComponent for direction control |
| helios.engine.modules.spatial.transform | TranslationStateComponent for position |
| helios.engine.builder | ChaseConfig for fluent setup |
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.