cGenericCollision Class Reference
[Collision Detection]

cGenericCollision is an abstract class for collision-detection algorithms for meshes with line segments. More...

#include <CGenericCollision.h>

Inheritance diagram for cGenericCollision:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 cGenericCollision ()
 Constructor of cGenericCollision.
virtual ~cGenericCollision ()
 Destructor of cGenericCollision.
virtual void initialize (double a_radius=0)
 Do any necessary initialization, such as building trees.
virtual void render ()
 Provide a visual representation of the method.
virtual bool computeCollision (cVector3d &a_segmentPointA, cVector3d &a_segmentPointB, cCollisionRecorder &a_recorder, cCollisionSettings &a_settings)
 Return the triangles intersected by the given segment, if any.
void setDisplayDepth (int a_depth)
 Set level of collision tree to display.
double getDisplayDepth () const
 Read level of collision tree being displayed.

Public Attributes

cMaterial m_material
 Color properties of the collision object.

Protected Attributes

int m_displayDepth


Detailed Description

cGenericCollision is an abstract class for collision-detection algorithms for meshes with line segments.

Member Data Documentation

Level of collision tree to render... negative values force rendering up to and including this level, positive values render _just_ this level.


The documentation for this class was generated from the following files:


CHAI3D 2.0.0 documentation
Please address any questions to support@chai3d.org
(C) 2003-2009 - CHAI 3D
All Rights Reserved.