class

FAINoiseMap

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

Type aliases

AliasDescription
using FPropagationFn = std::function<float(const Vec3& from, const Vec3& to)>Gain (0..1) a sound keeps travelling from one point to another — the world's FSoundPropagation in the engine, anything in a test.

Public functions

ReturnsNameDescription
voidSetCellSize
floatGetCellSize
voidSetHalfLife
floatGetHalfLife
voidSetReachHow far one unit of loudness carries before propagation; louder noises carry proportionally further.
floatGetReach
voidSetPropagation
uint32_tDepositSpreads one noise over the cells it reaches.
voidAdvance
voidClear
floatSampleThe energy at a point (its cell), 0 where nothing was heard.
boolFindLoudestThe loudest cell within radius of center; false when every cell there is below minEnergy.
floatGetInstigatorEnergyEverything one instigator has put into the map, faded with it.
uint32_tGetCellCount
uint64_tGetDepositCount
const std::unordered_map<uint64_t, FAINoiseCell>&GetCells
uint64_tCellKey
voidDrawDebugCells as squares tinted by energy, under the Perception debug layer.

Function details

SetCellSize

C++
void SetCellSize(float meters)

GetCellSize

C++
float GetCellSize() const

SetHalfLife

C++
void SetHalfLife(float seconds)

GetHalfLife

C++
float GetHalfLife() const

SetReach

C++
void SetReach(float meters)

How far one unit of loudness carries before propagation; louder noises carry proportionally further.

GetReach

C++
float GetReach() const

SetPropagation

C++
void SetPropagation(FPropagationFn propagation)

Deposit

C++
uint32_t Deposit(const Vec3& position, float loudness, EntityID instigator)

Spreads one noise over the cells it reaches. Returns how many cells it landed in.

Advance

C++
void Advance(float deltaTime)

Clear

C++
void Clear()

Sample

C++
float Sample(const Vec3& position) const

The energy at a point (its cell), 0 where nothing was heard.

FindLoudest

C++
bool FindLoudest(const Vec3& center, float radius, float minEnergy, FAINoiseHotspot& outHotspot) const

The loudest cell within radius of center; false when every cell there is below minEnergy.

GetInstigatorEnergy

C++
float GetInstigatorEnergy(EntityID instigator) const

Everything one instigator has put into the map, faded with it.

GetCellCount

C++
uint32_t GetCellCount() const

GetDepositCount

C++
uint64_t GetDepositCount() const

GetCells

C++
const std::unordered_map<uint64_t, FAINoiseCell>& GetCells() const

CellKey

C++
static uint64_t CellKey(int32_t x, int32_t z)

DrawDebug

C++
void DrawDebug() const

Cells as squares tinted by energy, under the Perception debug layer.

Generated from AINavigation/AINoiseMap.h via ainavigation.json · Oct 27, 2026Version 1.0.0