class
EnvQuery
- Module
- AINavigation
- Header
#include "AINavigation/EnvQuery.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
std::vector<EnvQueryItem> | GenerateGrid | Generators A square XZ grid of points centred on center (at center.y), spanning [-halfExtent, halfExtent] each axis at spacing steps. |
std::vector<EnvQueryItem> | GenerateRing | count points evenly around a horizontal ring of radius about center. |
void | FilterRange | Filters (erase items that fail) |
void | FilterMaxAngle | Keep only items within maxAngleDeg of forward as seen from ref. |
void | ScoreDistance | Scorers (add a 0..1 normalized, weighted term to each item's score) preferFar = farther from ref scores higher; else nearer scores higher. |
const EnvQueryItem* | Best | Result |
Function details
GenerateGrid
C++
static std::vector<EnvQueryItem> GenerateGrid(const Vec3& center, float halfExtent, float spacing)Generators A square XZ grid of points centred on center (at center.y), spanning [-halfExtent, halfExtent] each axis at spacing steps.
GenerateRing
C++
static std::vector<EnvQueryItem> GenerateRing(const Vec3& center, float radius, int count)count points evenly around a horizontal ring of radius about center.
FilterRange
C++
static void FilterRange(std::vector<EnvQueryItem>& items, const Vec3& ref, float minR, float maxR)Filters (erase items that fail)
FilterMaxAngle
C++
static void FilterMaxAngle(std::vector<EnvQueryItem>& items, const Vec3& ref, const Vec3& forward, float maxAngleDeg)Keep only items within maxAngleDeg of forward as seen from ref.
ScoreDistance
C++
static void ScoreDistance(std::vector<EnvQueryItem>& items, const Vec3& ref, bool preferFar, float weight = 1.0f)Scorers (add a 0..1 normalized, weighted term to each item's score) preferFar = farther from ref scores higher; else nearer scores higher.
Best
C++
static const EnvQueryItem* Best(const std::vector<EnvQueryItem>& items)Result
Generated from AINavigation/EnvQuery.h via ainavigation.json · Oct 27, 2026Version 1.0.0