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

◆ get_accreted_mass()

float MayaFlux::Nodes::Network::PhysicsOperator::get_accreted_mass ( size_t  global_index) const

This particle's currently accreted mass.

Returns
1.0 (the seed value every particle starts at) before bonds have ever synced, or if global_index is out of range.

Populated by sync_bonds_from_claims, which is the only place mass moves: a satellite's mass transfers onto its current root every cycle it remains claimed and is never created or destroyed (see that method's own doc). Unlike ClaimAccumulateProcessor's GPU-side swallow_count, which ClaimInitProcessor wipes every cycle, this is a genuine permanent record of accumulated material, suitable for a growth effect that actually takes real time rather than saturating as soon as local density reaches steady state.

Definition at line 613 of file PhysicsOperator.cpp.

614{
615 if (global_index >= m_accreted_mass.size()) {
616 return 1.0F;
617 }
618 return m_accreted_mass[global_index];
619}
std::vector< float > m_accreted_mass
Lazily seeded to 1.0 per particle; see sync_bonds_from_claims.

References m_accreted_mass.

Referenced by apply_bond_forces().

+ Here is the caller graph for this function: