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

◆ apply_forces()

void MayaFlux::Nodes::Network::PhysicsOperator::apply_forces ( )
private

Definition at line 386 of file PhysicsOperator.cpp.

387{
388 for (auto& group : m_collections) {
389 for (auto& state : group.physics_state) {
390 state.force = m_gravity * state.mass;
391 }
392 }
393
396 }
397
398 if (m_turbulence_strength > 0.001F) {
400 }
401
404 }
405}
std::vector< CollectionGroup > m_collections

References apply_attraction_forces(), apply_spatial_interactions(), apply_turbulence(), m_collections, m_gravity, m_has_attraction_point, m_interaction_radius, m_spatial_interactions_enabled, and m_turbulence_strength.

Referenced by process().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: