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

CollisionHull Class Reference

A bounding ellipse for collision detection. More...

#include <CollisionHull.h>

Collaboration diagram for CollisionHull:

Collaboration graph
[legend]
List of all members.

Public Methods

 CollisionHull (float r, float y)
const AABoundingBoxgetBound () const
void operator+= (const Vertex3 &v)
Vertex3getVelocity ()
void setVelocity (const Vertex3 &v)
const Vertex3getPosition () const
void setPosition (const Vertex3 &p)
const Vertex3getNormVelocity () const
real getYScale () const
real getRadius () const
real getDistanceToTravel () const
bool update (World &world)
bool collide (const AABoundingBox &box) const

Static Public Attributes

const real inf = 1.0e+5
const real epsilon = 1.0e-5

Protected Methods

void recursiveCollide (World &world)
void calculateBound ()

Protected Attributes

AABoundingBox bound
Vertex3 position
Vertex3 velocity
float radius
float yScale
Vertex3 normalizedVelocity
real distanceToTravel

Detailed Description

A bounding ellipse for collision detection.


Member Function Documentation

bool CollisionHull::update World   world
 

Bug:
Somehow the collision test sometimes fails.


The documentation for this class was generated from the following files:
This documentation was generated using doxygen. If you have any comments or additions please mail me.