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

◆ apply_drag()

void MayaFlux::Nodes::Network::ParticleNetwork::apply_drag ( )
private

Apply drag forces.

Definition at line 344 of file ParticleNetwork.cpp.

345{
346 for (auto& particle : m_particles) {
347 // F_drag = -k * v
348 particle.force -= particle.velocity * m_drag;
349 }
350}

References m_drag, and m_particles.

Referenced by process_batch().

+ Here is the caller graph for this function: