MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Nexus::PerceptionContext Struct Reference

Data passed to a Sensor or Agent perception function on each commit. More...

#include <Perception.hpp>

+ Collaboration diagram for MayaFlux::Nexus::PerceptionContext:

Public Attributes

std::optional< glm::quat > orientation
 Optional orientation of the perceiver. Local +Z is its forward direction.
 
glm::vec3 position {}
 
float radius { 1.0F }
 Query radius the spatial results were gathered with.
 
std::span< const Kinesis::QueryResult > spatial_results
 

Detailed Description

Data passed to a Sensor or Agent perception function on each commit.

spatial_results contains the entities within radius of position at the moment of the last published snapshot. Results hold entity ids and squared distances as returned by SpatialIndex::within_radius.

Fields marked

Note
future are reserved for later domain expansions.

Definition at line 19 of file Perception.hpp.


The documentation for this struct was generated from the following file: