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

PhysSystem Class Reference

#include <PhysSystem.h>

Collaboration diagram for PhysSystem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool AddObjects (vector< Object3d * > &new_obj_list)
bool Bound (PhysObject &cur_obj)
void CollideObjects (PhysObject &Object1, PhysObject &Object2)
bool CollidePoints (glVector point1, glVector &momentum1, float m1, float cor1, glVector point2, glVector &momentum2, float m2, float cor2)
 PhysSystem ()
void Update (PhysObject &cur_obj)
void UpdateAll ()
void WorldEffect (PhysObject &cur_obj)

Public Attributes

glVector gravity
vector< PhysObjectobj_list
HiResTimer physics_timer
HeightMapterrain
glVector wind

Constructor & Destructor Documentation

PhysSystem::PhysSystem  ) 
 

Definition at line 3 of file PhysSystem.cpp.

References gravity, glVector::SetVector(), and wind.

Here is the call graph for this function:


Member Function Documentation

bool PhysSystem::AddObjects vector< Object3d * > &  new_obj_list  ) 
 

Definition at line 9 of file PhysSystem.cpp.

References obj_list.

Referenced by WinMain().

bool PhysSystem::Bound PhysObject cur_obj  ) 
 

void PhysSystem::CollideObjects PhysObject Object1,
PhysObject Object2
 

Definition at line 39 of file PhysSystem.cpp.

References CollidePoints(), glVector::length(), and glVector::ProjectOnto().

Referenced by UpdateAll().

Here is the call graph for this function:

bool PhysSystem::CollidePoints glVector  point1,
glVector momentum1,
float  m1,
float  cor1,
glVector  point2,
glVector momentum2,
float  m2,
float  cor2
 

Definition at line 114 of file PhysSystem.cpp.

References glVector::ProjectOnto().

Referenced by CollideObjects().

Here is the call graph for this function:

void PhysSystem::Update PhysObject cur_obj  ) 
 

Definition at line 136 of file PhysSystem.cpp.

References HiResTimer::difference_time, and physics_timer.

Referenced by UpdateAll().

void PhysSystem::UpdateAll  ) 
 

Definition at line 20 of file PhysSystem.cpp.

References CollideObjects(), HiResTimer::GetElapsedSeconds(), obj_list, physics_timer, Update(), and WorldEffect().

Referenced by DrawGLScene().

Here is the call graph for this function:

void PhysSystem::WorldEffect PhysObject cur_obj  ) 
 

Definition at line 130 of file PhysSystem.cpp.

References HiResTimer::difference_time, obj_list, and physics_timer.

Referenced by UpdateAll().


Member Data Documentation

glVector PhysSystem::gravity
 

Definition at line 32 of file PhysSystem.h.

Referenced by PhysSystem().

vector<PhysObject> PhysSystem::obj_list
 

Definition at line 31 of file PhysSystem.h.

Referenced by AddObjects(), DrawGLScene(), UpdateAll(), and WorldEffect().

HiResTimer PhysSystem::physics_timer
 

Definition at line 35 of file PhysSystem.h.

Referenced by Update(), UpdateAll(), WinMain(), and WorldEffect().

HeightMap* PhysSystem::terrain
 

Definition at line 34 of file PhysSystem.h.

glVector PhysSystem::wind
 

Definition at line 33 of file PhysSystem.h.

Referenced by PhysSystem().


The documentation for this class was generated from the following files:
Generated on Thu Apr 21 18:06:33 2005 for Basic Rendering Engine by  doxygen 1.4.1