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

oxygen::BoxCollider Class Reference

BoxCollider encapsulates an ODE box geometry object. More...

#include <boxcollider.h>

Inheritance diagram for oxygen::BoxCollider:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BoxCollider ()
void SetBoxLengths (const salt::Vector3f &extents)
 sets the side lengths of the box geom
void GetBoxLengths (salt::Vector3f &extents)
 gets the side lengths of the box geom
float GetBoxLength (int axis)
 gets the length of on side of the box
float GetPointDepth (const salt::Vector3f &pos)
 returns the depth of the given relative position in the managed box geom.

Protected Member Functions

virtual bool ConstructInternal ()
 constructs a default box with side lengths of 1

Detailed Description

BoxCollider encapsulates an ODE box geometry object.

Definition at line 32 of file boxcollider.h.


Constructor & Destructor Documentation

BoxCollider::BoxCollider  ) 
 

Definition at line 28 of file boxcollider.cpp.


Member Function Documentation

bool BoxCollider::ConstructInternal  )  [protected, virtual]
 

constructs a default box with side lengths of 1

Reimplemented from zeitgeist::Object.

Definition at line 44 of file boxcollider.cpp.

References zeitgeist::Object::ConstructInternal(), and oxygen::Collider::mODEGeom.

Here is the call graph for this function:

float BoxCollider::GetBoxLength int  axis  ) 
 

gets the length of on side of the box

Parameters:
axis gives the queried axis, 0-X, 1-Y, 2-Z

Definition at line 68 of file boxcollider.cpp.

References GetBoxLengths().

Here is the call graph for this function:

void BoxCollider::GetBoxLengths salt::Vector3f extents  ) 
 

gets the side lengths of the box geom

Definition at line 58 of file boxcollider.cpp.

References oxygen::Collider::mODEGeom.

Referenced by GetBoxLength().

float BoxCollider::GetPointDepth const salt::Vector3f pos  ) 
 

returns the depth of the given relative position in the managed box geom.

Points inside the geom will have positive depth, points outside it will have negative depth, and points on the surface will have zero depth.

Definition at line 84 of file boxcollider.cpp.

References oxygen::BaseNode::GetWorldTransform(), and oxygen::Collider::mODEGeom.

Here is the call graph for this function:

void BoxCollider::SetBoxLengths const salt::Vector3f extents  ) 
 

sets the side lengths of the box geom

Definition at line 33 of file boxcollider.cpp.

References oxygen::Collider::mODEGeom.


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