Sum of every particle's accreted mass.
- Returns
- particle count before bonds have ever synced (each particle starts at mass 1.0), and exactly that same value forever after, since transfer neither creates nor destroys mass. Useful as a caller's own reference point for what fraction of the whole system a given body currently represents.
Definition at line 630 of file PhysicsOperator.cpp.
631{
635 count +=
static_cast<float>(group.collection->get_point_count());
636 }
638 }
639
640 float total = 0.0F;
642 total += mass;
643 }
644 return total;
645}
std::vector< CollectionGroup > m_collections
std::vector< float > m_accreted_mass
Lazily seeded to 1.0 per particle; see sync_bonds_from_claims.
References count, m_accreted_mass, and m_collections.