Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

gator::PlaneCollisionDetector Class Reference

this is a sample detector provided with gator. More...

#include <PlaneCollisionDetector.h>

Inheritance diagram for gator::PlaneCollisionDetector:

gator::CollisionDetector List of all members.

Public Methods

 PlaneCollisionDetector ()
void setPlane (gmtl::Planef &plane)
 set the plane in which to collide. More...

virtual bool exec (const ani::Body &body, float &dist, gmtl::Vec3f &normal)

Detailed Description

this is a sample detector provided with gator.

it implements a very simple Body/Plane collision.

Definition at line 13 of file PlaneCollisionDetector.h.


Constructor & Destructor Documentation

gator::PlaneCollisionDetector::PlaneCollisionDetector   [inline]
 

Definition at line 16 of file PlaneCollisionDetector.h.


Member Function Documentation

void gator::PlaneCollisionDetector::setPlane gmtl::Planef &    plane [inline]
 

set the plane in which to collide.

Definition at line 23 of file PlaneCollisionDetector.h.

virtual bool gator::PlaneCollisionDetector::exec const ani::Body   body,
float &    dist,
gmtl::Vec3f &    normal
[inline, virtual]
 

Implements gator::CollisionDetector.

Definition at line 28 of file PlaneCollisionDetector.h.

References ani::Body::linearVelocity(), ani::Body::position(), and ani::Body::volume().


The documentation for this class was generated from the following file:
Generated on Wed Jun 12 01:54:09 2002 for Animaniac by doxygen1.2.15