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

◆ apply_turbulence()

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

Definition at line 407 of file PhysicsOperator.cpp.

408{
409 for (auto& group : m_collections) {
410 for (auto& state : group.physics_state) {
411 glm::vec3 random_force(
412 m_random_generator(-1.0F, 1.0F),
413 m_random_generator(-1.0F, 1.0F),
414 m_random_generator(-1.0F, 1.0F));
415 state.force += random_force * m_turbulence_strength;
416 }
417 }
418}
std::vector< CollectionGroup > m_collections
Kinesis::Stochastic::Stochastic m_random_generator

References m_collections, m_random_generator, and m_turbulence_strength.

Referenced by apply_forces().

+ Here is the caller graph for this function: