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

◆ apply_per_particle_mass()

void MayaFlux::Nodes::Network::PhysicsOperator::apply_per_particle_mass ( const std::shared_ptr< NodeNetwork > &  source)
private

Definition at line 366 of file PhysicsOperator.cpp.

368{
369 size_t global_index = 0;
370
371 for (auto& group : m_collections) {
372 for (auto& i : group.physics_state) {
373 auto val = source->get_node_output(global_index++);
374 if (!val)
375 continue;
376
377 i.mass = std::max(0.1F, static_cast<float>(*val));
378 }
379 }
380}
std::vector< CollectionGroup > m_collections

References m_collections.

Referenced by apply_one_to_one().

+ Here is the caller graph for this function: