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

◆ Sensor() [1/2]

MayaFlux::Nexus::Sensor::Sensor ( float  query_radius,
PerceptionFn  fn 
)
inlineexplicit

Construct with a query radius and a perception function.

Parameters
query_radiusRadius passed to the spatial index on each commit. Ignored if no position has been set.
fnCalled on every commit with the current context.

Definition at line 29 of file Sensor.hpp.

31 , m_fn(std::move(fn))
32 {
33 }
float query_radius() const
Return the query radius.
Definition Sensor.hpp:76
const PerceptionFn & fn() const
The perception function itself.
Definition Sensor.hpp:55