Cyclone Cyclone: cyclone::ParticleBuoyancy Class Reference

cyclone::ParticleBuoyancy Class Reference

A force generator that applies a buoyancy force for a plane of liquid parrallel to XZ plane. More...

#include <pfgen.h>

Inheritance diagram for cyclone::ParticleBuoyancy:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ParticleBuoyancy (real maxDepth, real volume, real waterHeight, real liquidDensity=1000.0f)
 Creates a new buoyancy force with the given parameters.
virtual void updateForce (Particle *particle, real duration)
 Applies the buoyancy force to the given particle.

Detailed Description

A force generator that applies a buoyancy force for a plane of liquid parrallel to XZ plane.


Constructor & Destructor Documentation

cyclone::ParticleBuoyancy::ParticleBuoyancy real  maxDepth,
real  volume,
real  waterHeight,
real  liquidDensity = 1000.0f
 

Creates a new buoyancy force with the given parameters.


Member Function Documentation

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

Applies the buoyancy force to the given particle.

Implements cyclone::ParticleForceGenerator.


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