Cyclone Cyclone: cyclone::Buoyancy Class Reference

cyclone::Buoyancy Class Reference

A force generator to apply a buoyant force to a rigid body. More...

#include <fgen.h>

Inheritance diagram for cyclone::Buoyancy:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Buoyancy (const Vector3 &cOfB, real maxDepth, real volume, real waterHeight, real liquidDensity=1000.0f)
 Creates a new buoyancy force with the given parameters.
virtual void updateForce (RigidBody *body, real duration)
 Applies the force to the given rigid body.

Detailed Description

A force generator to apply a buoyant force to a rigid body.


Constructor & Destructor Documentation

cyclone::Buoyancy::Buoyancy const Vector3 cOfB,
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::Buoyancy::updateForce RigidBody body,
real  duration
[virtual]
 

Applies the force to the given rigid body.

Implements cyclone::ForceGenerator.


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