MayaFlux 0.4.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 368 of file PhysicsOperator.cpp.

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

References m_collections.

Referenced by apply_one_to_one().

+ Here is the caller graph for this function: