Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

oxygen::DragController Class Reference

BodyController that applies a linear and angular drag the controlled body. More...

#include <dragcontroller.h>

Inheritance diagram for oxygen::DragController:

Inheritance graph
[legend]
Collaboration diagram for oxygen::DragController:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DragController ()
virtual ~DragController ()
float GetLinearDrag ()
void SetLinearDrag (float d)
float GetAngularDrag ()
void SetAngularDrag (float d)

Protected Member Functions

virtual void PrePhysicsUpdateInternal (float deltaTime)
 calculates and applies the force needed to perfom the drag

Protected Attributes

float mLinearDrag
float mAngularDrag

Detailed Description

BodyController that applies a linear and angular drag the controlled body.

Definition at line 31 of file dragcontroller.h.


Constructor & Destructor Documentation

DragController::DragController  ) 
 

Definition at line 26 of file dragcontroller.cpp.

References mAngularDrag, and mLinearDrag.

DragController::~DragController  )  [virtual]
 

Definition at line 32 of file dragcontroller.cpp.


Member Function Documentation

float DragController::GetAngularDrag  ) 
 

Definition at line 68 of file dragcontroller.cpp.

References mAngularDrag.

float DragController::GetLinearDrag  ) 
 

Definition at line 58 of file dragcontroller.cpp.

References mLinearDrag.

void DragController::PrePhysicsUpdateInternal float  deltaTime  )  [protected, virtual]
 

calculates and applies the force needed to perfom the drag

Reimplemented from oxygen::BaseNode.

Definition at line 36 of file dragcontroller.cpp.

References mAngularDrag, oxygen::BodyController::mBody, and mLinearDrag.

void DragController::SetAngularDrag float  d  ) 
 

Definition at line 73 of file dragcontroller.cpp.

References mAngularDrag.

void DragController::SetLinearDrag float  d  ) 
 

Definition at line 63 of file dragcontroller.cpp.

References mLinearDrag.


Member Data Documentation

float oxygen::DragController::mAngularDrag [protected]
 

Definition at line 64 of file dragcontroller.h.

Referenced by DragController(), GetAngularDrag(), PrePhysicsUpdateInternal(), and SetAngularDrag().

float oxygen::DragController::mLinearDrag [protected]
 

Definition at line 61 of file dragcontroller.h.

Referenced by DragController(), GetLinearDrag(), PrePhysicsUpdateInternal(), and SetLinearDrag().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:45:37 2006 for rcssserver3d by  doxygen 1.4.4