class
AIPerception
- Module
- AINavigation
- Header
#include "AINavigation/AIPerception.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
PerceptionConfig | config |
Public functions
| Returns | Name | Description |
|---|---|---|
bool | InSightCone | Pure sight test: target within radius of eye AND within the half-FOV cone around forward (normalized internally). |
MObject* | Sense | Recompute the perceived set from the perceiver pose + candidate (actor,pos) list. |
MObject* | Sense | |
const std::vector<PerceivedTarget>& | Perceived | |
bool | IsPerceived | |
bool | IsPerceivedBySight | |
void | Forget |
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() constIsPerceived
C++
bool IsPerceived(MObject* actor) constIsPerceivedBySight
C++
bool IsPerceivedBySight(uint64_t entity) constForget
C++
void Forget()Generated from AINavigation/AIPerception.h via ainavigation.json · Oct 27, 2026Version 1.0.0