# cODEWorldCollision Class Reference

cODEWorldCollision provides a collision detection model to support ODE objects modeled under the CHAI framework More...

`#include <CODEWorld.h>`

Inheritance diagram for cODEWorldCollision:

[legend]

List of all members.

## Public Member Functions
| cODEWorldCollision (cODEWorld *a_ODEWorld)
| Constructor of cODEWorldCollision.
virtual | ~cODEWorldCollision ()
| Destructor of cODEWorldCollision.
virtual void | initialize (double a_radius)
| 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 nearest triangle intersected by the given segment, if any.

## Detailed Description

cODEWorldCollision provides a collision detection model to support ODE objects modeled under the CHAI framework

## Member Function Documentation

bool cODEWorldCollision::computeCollision | ( | cVector3d & | a_segmentPointA,
|  | cVector3d & | a_segmentPointB,
|  | cCollisionRecorder & | a_recorder,
|  | cCollisionSettings & | a_settings |
| ) |  |  | `[virtual]`

Return the nearest triangle intersected by the given segment, if any.

Extends cODEWorld to support collision detection.

Parameters:

  | a_segmentPointA | Start point of segment.
  | a_segmentPointB | End point of segment.
  | a_recorder | Stores all collision events.
  | a_settings | Contains collision settings information.

Returns:
  Return true if a collision has occurred.

Reimplemented from cGenericCollision.

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

- D:/CHAI3D/build-2-0-0/2.0.0/win32/modules/ODE/CODEWorld.h
- D:/CHAI3D/build-2-0-0/2.0.0/win32/modules/ODE/CODEWorld.cpp

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