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

oxygen::SphereCollider Class Reference

SphereCollider encapsulates an ODE sphere geometry object. More...

#include <spherecollider.h>

Inheritance diagram for oxygen::SphereCollider:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SphereCollider ()
void SetRadius (float r)
 sets the radius of the managed ODE sphere geom
float GetRadius () const
 get the radius back from ODE
float GetPointDepth (const salt::Vector3f &pos)
 returns the depth of the given relative position in the managed sphere.

Protected Member Functions

virtual bool ConstructInternal ()
 constructs a default sphere with a radius of 1

Detailed Description

SphereCollider encapsulates an ODE sphere geometry object.

Definition at line 32 of file spherecollider.h.


Constructor & Destructor Documentation

SphereCollider::SphereCollider  ) 
 

Definition at line 27 of file spherecollider.cpp.


Member Function Documentation

bool SphereCollider::ConstructInternal  )  [protected, virtual]
 

constructs a default sphere with a radius of 1

Reimplemented from zeitgeist::Object.

Definition at line 44 of file spherecollider.cpp.

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

Here is the call graph for this function:

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

returns the depth of the given relative position in the managed sphere.

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 58 of file spherecollider.cpp.

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

Here is the call graph for this function:

float SphereCollider::GetRadius  )  const
 

get the radius back from ODE

Definition at line 38 of file spherecollider.cpp.

References oxygen::Collider::mODEGeom.

void SphereCollider::SetRadius float  r  ) 
 

sets the radius of the managed ODE sphere geom

Definition at line 32 of file spherecollider.cpp.

References oxygen::Collider::mODEGeom.


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