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

◆ apply_turbulence()

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

Definition at line 421 of file PhysicsOperator.cpp.

422{
424
425 for (auto& group : m_collections) {
426 for (auto& state : group.physics_state) {
427 state.force += field(glm::vec3(0.0F));
428 }
429 }
430}
std::vector< CollectionGroup > m_collections
Kinesis::Stochastic::Stochastic m_random_generator
VectorField turbulence(float strength, Stochastic::Stochastic rng=Stochastic::Stochastic())
Uniform random force field using Stochastic infrastructure.

References m_collections, m_random_generator, m_turbulence_strength, and MayaFlux::Kinesis::ForceFields::turbulence().

Referenced by apply_forces().

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