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

◆ Presence() [1/2]

MayaFlux::Nexus::Presence::Presence ( float  query_radius,
PerceptionFn  perception,
InfluenceFn  influence,
RadiateFn  radiate 
)

Construct with perception, influence, and radiation functions.

Parameters
query_radiusRadius passed to the spatial index on each commit.
perceptionUser perception callable, fired before the neighborhood is captured.
influenceUser influence callable, fired before radiation.
radiateInvoked per neighbor inside the falloff radius.

Definition at line 16 of file Presence.cpp.

20 : Agent(query_radius, std::move(perception), std::move(influence))
21 , m_falloff(linear_falloff)
22 , m_radiate(std::move(radiate))
23{
24}
Agent(float query_radius=1.0F)
Construct with only a query radius, for an Agent whose behaviour comes from typed influences and perc...
Definition Agent.hpp:47
float query_radius() const
Return the query radius.
Definition Agent.hpp:133