MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ invoke_perception()

void MayaFlux::Nexus::Locus::invoke_perception ( const PerceptionContext ctx)
overridevirtual

Perceive: run the user perception callable, then integrate the view.

Fires the inherited perception callable with ctx, advances the eye by held movement flags scaled by elapsed time, mirrors the new eye into the inherited position, and stores the resulting ViewTransform. The Locus now sees the world from its updated state.

Parameters
ctxPerception context built by Fabric from the spatial snapshot.

Reimplemented from MayaFlux::Nexus::Agent.

Definition at line 47 of file Locus.cpp.

48{
50
54}
virtual void invoke_perception(const PerceptionContext &ctx)
Invoke the perception function with the supplied context.
Definition Agent.hpp:266
void set_position(const glm::vec3 &p)
Set the position, enabling spatial indexing and queries for this object.
Definition Agent.hpp:95
Kinesis::NavigationState m_nav
Definition Locus.hpp:172
Kinesis::ViewTransform m_view
Definition Locus.hpp:173
void advance_navigation(NavigationState &st)
Advance eye position by held movement flags against elapsed time.
ViewTransform build_view_transform(const NavigationState &st, float aspect)
Build a ViewTransform from the current NavigationState without mutating it.

References MayaFlux::Kinesis::advance_navigation(), MayaFlux::Kinesis::build_view_transform(), MayaFlux::Kinesis::NavigationState::eye, MayaFlux::Nexus::Agent::invoke_perception(), m_aspect, m_nav, m_view, and MayaFlux::Nexus::Agent::set_position().

+ Here is the call graph for this function: