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

oxygen::RayCollider Class Reference

RayCollider encapsulates an ODE ray geometry "object". More...

#include <raycollider.h>

Inheritance diagram for oxygen::RayCollider:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RayCollider ()
void SetParams (salt::Vector3f pos, salt::Vector3f dir, float length)
 Sets the parameters of the ray.

Protected Member Functions

virtual bool ConstructInternal ()
 constructs a default ray with a length of 1

Detailed Description

RayCollider encapsulates an ODE ray geometry "object".

A ray is different from all the other geom classes in that it does not represent a solid object. It is an infinitely thin line that starts from the geom's position and extends in the direction of the geom's local Z-axis.

Definition at line 37 of file raycollider.h.


Constructor & Destructor Documentation

RayCollider::RayCollider  ) 
 

Definition at line 26 of file raycollider.cpp.


Member Function Documentation

bool RayCollider::ConstructInternal  )  [protected, virtual]
 

constructs a default ray with a length of 1

Reimplemented from zeitgeist::Object.

Definition at line 39 of file raycollider.cpp.

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

Here is the call graph for this function:

void RayCollider::SetParams salt::Vector3f  pos,
salt::Vector3f  dir,
float  length
 

Sets the parameters of the ray.

Parameters:
pos starting position of the ray
dir new direction of the ray
length length of the ray starting at its position

Definition at line 31 of file raycollider.cpp.

References oxygen::Collider::mODEGeom.


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