class
FAINoiseMap
- Module
- AINavigation
- Header
#include "AINavigation/AINoiseMap.h"- Namespace
Mowo
Type aliases
| Alias | Description |
|---|---|
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
| Returns | Name | Description |
|---|---|---|
void | SetCellSize | |
float | GetCellSize | |
void | SetHalfLife | |
float | GetHalfLife | |
void | SetReach | How far one unit of loudness carries before propagation; louder noises carry proportionally further. |
float | GetReach | |
void | SetPropagation | |
uint32_t | Deposit | Spreads one noise over the cells it reaches. |
void | Advance | |
void | Clear | |
float | Sample | The energy at a point (its cell), 0 where nothing was heard. |
bool | FindLoudest | The loudest cell within radius of center; false when every cell there is below minEnergy. |
float | GetInstigatorEnergy | Everything one instigator has put into the map, faded with it. |
uint32_t | GetCellCount | |
uint64_t | GetDepositCount | |
const std::unordered_map<uint64_t, FAINoiseCell>& | GetCells | |
uint64_t | CellKey | |
void | DrawDebug | Cells as squares tinted by energy, under the Perception debug layer. |
Function details
SetCellSize
C++
void SetCellSize(float meters)GetCellSize
C++
float GetCellSize() constSetHalfLife
C++
void SetHalfLife(float seconds)GetHalfLife
C++
float GetHalfLife() constSetReach
C++
void SetReach(float meters)How far one unit of loudness carries before propagation; louder noises carry proportionally further.
GetReach
C++
float GetReach() constSetPropagation
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) constThe energy at a point (its cell), 0 where nothing was heard.
FindLoudest
C++
bool FindLoudest(const Vec3& center, float radius, float minEnergy, FAINoiseHotspot& outHotspot) constThe loudest cell within radius of center; false when every cell there is below minEnergy.
GetInstigatorEnergy
C++
float GetInstigatorEnergy(EntityID instigator) constEverything one instigator has put into the map, faded with it.
GetCellCount
C++
uint32_t GetCellCount() constGetDepositCount
C++
uint64_t GetDepositCount() constGetCells
C++
const std::unordered_map<uint64_t, FAINoiseCell>& GetCells() constCellKey
C++
static uint64_t CellKey(int32_t x, int32_t z)DrawDebug
C++
void DrawDebug() constCells as squares tinted by energy, under the Perception debug layer.
Generated from AINavigation/AINoiseMap.h via ainavigation.json · Oct 27, 2026Version 1.0.0