- Main Page
- Classes
- Files
- Directories

- Class List
- Class Hierarchy
- Class Members

# cGenericCollision Class Reference

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

`#include <CGenericCollision.h>`

Inheritance diagram for cGenericCollision:

List of all members.

## Public Member Functions
| cGenericCollision ()
| Constructor of cGenericCollision.
virtual | ~cGenericCollision ()
| Destructor of cGenericCollision.
virtual void | initialize ()
| 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, cGenericObject *&a_colObject, cTriangle *&a_colTriangle, cVector3d &a_colPoint, double &a_colSquareDistance, int a_proxyCall=-1)
| Return the nearest triangle intersected by the given segment, if any.
void | setDisplayDepth (unsigned 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.

## Constructor & Destructor Documentation

cGenericCollision::cGenericCollision | ( |  | ) |

Constructor of cGenericCollision.

Constructor of cGenericCollision.

## Member Data Documentation

int cGenericCollision::m_displayDepth`[protected]`

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/src/collisions/CGenericCollision.h
- chai3d/src/collisions/CGenericCollision.cpp