Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

OpenCAL::ViscousDrag Class Reference

#include <ViscousDrag.h>

Inheritance diagram for OpenCAL::ViscousDrag:

Inheritance graph
[legend]
Collaboration diagram for OpenCAL::ViscousDrag:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ViscousDrag (PhysicsSystem *parent, float drag=0.002f)
float getDrag () const
void setDrag (float drag)
void execute (float seconds)

Protected Attributes

float m_drag

Detailed Description

Description

Definition at line 27 of file ViscousDrag.h.


Member Function Documentation

void ViscousDrag::execute float  seconds  )  [virtual]
 

\[ f = -k_d . v \]

Todo:
Casting is bad...

Reimplemented from OpenCAL::Actor.

Definition at line 49 of file ViscousDrag.cpp.

References OpenCAL::Physical::addForce(), and OpenCAL::Physical::getVelocity().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Aug 15 19:19:35 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8