Cyclone Cyclone: cyclone::ParticleDrag Class Reference

cyclone::ParticleDrag Class Reference

A force generator that applies a drag force. More...

#include <pfgen.h>

Inheritance diagram for cyclone::ParticleDrag:

Inheritance graph
[legend]
Collaboration diagram for cyclone::ParticleDrag:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ParticleDrag (real k1, real k2)
 Creates the generator with the given coefficients.
virtual void updateForce (Particle *particle, real duration)
 Applies the drag force to the given particle.

Detailed Description

A force generator that applies a drag force.

One instance can be used for multiple particles.


Constructor & Destructor Documentation

cyclone::ParticleDrag::ParticleDrag real  k1,
real  k2
 

Creates the generator with the given coefficients.


Member Function Documentation

virtual void cyclone::ParticleDrag::updateForce Particle particle,
real  duration
[virtual]
 

Applies the drag force to the given particle.

Implements cyclone::ParticleForceGenerator.


The documentation for this class was generated from the following file: