class

AIPerceptionSystem

Module
AINavigation
Header
#include "AINavigation/AIPerceptionSystem.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
SystemPhaseGetPhase
boolDeclaresComponentAccessThe BehaviorTreeComponent write is the blackboard publish on sight/hearing updates — without it in the mask this races BehaviorTreeSystem if both ever declare.
ComponentMaskGetReadMask
ComponentMaskGetWriteMask
uint32_tGetResourceReadMaskSight raycasts the physics world.
voidUpdate
uint32_tEmitStimulusEvery sense reads the stimulus bus.
voidReportNoise
voidReportDamage
const FAIStimulusBus&GetStimulusBus
const FAINoiseMap&GetNoiseMapEvery sound and scan filed here also lands on the noise map, spread by the world's sound propagation (ai.NoiseMap.*).
FAINoiseMap&GetNoiseMap
boolDirectAttentionPoints a perceiver that cannot see its target at a place, as if it had heard something there: last known position and stimulus, published to its blackboard on the next update.
TMulticastDelegate<EntityID, EntityID>&OnTargetGained
TMulticastDelegate<EntityID, EntityID>&OnTargetLost
const AIPerception*GetPerceptionState
const std::vector<FAIPerceivedActor>*GetKnownActorsEvery actor perceiver currently remembers, seen or not; nullptr for an unknown perceiver.
uint32_tGetPerceiverUpdateCount
voidDebugDrawPerception

Function details

GetPhase

C++
SystemPhase GetPhase() const override

DeclaresComponentAccess

C++
bool DeclaresComponentAccess() const override

The BehaviorTreeComponent write is the blackboard publish on sight/hearing updates — without it in the mask this races BehaviorTreeSystem if both ever declare.

GetReadMask

C++
ComponentMask GetReadMask() const override

GetWriteMask

C++
ComponentMask GetWriteMask() const override

GetResourceReadMask

C++
uint32_t GetResourceReadMask() const override

Sight raycasts the physics world.

Update

C++
void Update(float deltaTime) override

EmitStimulus

C++
uint32_t EmitStimulus(const FAIStimulus& stimulus)

Every sense reads the stimulus bus. These file onto it; the room a stimulus happened in is stamped here, where the world is known.

ReportNoise

C++
void ReportNoise(const Vec3& position, float loudness, EntityID instigator)

ReportDamage

C++
void ReportDamage(EntityID victim, EntityID instigator, const Vec3& position)

GetStimulusBus

C++
const FAIStimulusBus& GetStimulusBus() const

GetNoiseMap

C++
const FAINoiseMap& GetNoiseMap() const

Every sound and scan filed here also lands on the noise map, spread by the world's sound propagation (ai.NoiseMap.*).

GetNoiseMap

C++
FAINoiseMap& GetNoiseMap()

DirectAttention

C++
bool DirectAttention(EntityID perceiver, const Vec3& position, const char* reason)

Points a perceiver that cannot see its target at a place, as if it had heard something there: last known position and stimulus, published to its blackboard on the next update. False when the perceiver is unknown or is watching its target.

OnTargetGained

C++
TMulticastDelegate<EntityID, EntityID>& OnTargetGained()

OnTargetLost

C++
TMulticastDelegate<EntityID, EntityID>& OnTargetLost()

GetPerceptionState

C++
const AIPerception* GetPerceptionState(EntityID entity) const

GetKnownActors

C++
const std::vector<FAIPerceivedActor>* GetKnownActors(EntityID perceiver) const

Every actor perceiver currently remembers, seen or not; nullptr for an unknown perceiver. Co-op AI tracks each player through this while the component and blackboard carry the one current target.

GetPerceiverUpdateCount

C++
uint32_t GetPerceiverUpdateCount(EntityID entity) const

DebugDrawPerception

C++
static void DebugDrawPerception(World* world)
Generated from AINavigation/AIPerceptionSystem.h via ainavigation.json · Oct 27, 2026Version 1.0.0