class

AIPerception

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

Properties

TypeNameDescription
PerceptionConfigconfig

Public functions

ReturnsNameDescription
boolInSightConePure sight test: target within radius of eye AND within the half-FOV cone around forward (normalized internally).
MObject*SenseRecompute the perceived set from the perceiver pose + candidate (actor,pos) list.
MObject*Sense
const std::vector<PerceivedTarget>&Perceived
boolIsPerceived
boolIsPerceivedBySight
voidForget

Function details

InSightCone

C++
static bool InSightCone(const Vec3& eye, const Vec3& forward, const Vec3& target, float radius, float fovDeg)

Pure sight test: target within radius of eye AND within the half-FOV cone around forward (normalized internally).

Sense

C++
MObject* Sense(const Vec3& eye, const Vec3& forward, const std::vector<std::pair<MObject*, Vec3>>& candidates)

Recompute the perceived set from the perceiver pose + candidate (actor,pos) list. Applies sight hysteresis against the previous frame. Returns the closest perceived target (nullptr if none).

Sense

C++
MObject* Sense(const Vec3& eye, const Vec3& forward, const std::vector<PerceptionSightQuery>& candidates)

Perceived

C++
const std::vector<PerceivedTarget>& Perceived() const

IsPerceived

C++
bool IsPerceived(MObject* actor) const

IsPerceivedBySight

C++
bool IsPerceivedBySight(uint64_t entity) const

Forget

C++
void Forget()
Generated from AINavigation/AIPerception.h via ainavigation.json · Oct 27, 2026Version 1.0.0