cGELWorldCollision Class Reference
[Module - GEL Dynamics Engine (Deformable Body Simulation)]

cGELWorldCollision provides a collision detection model to support deformable objects. More...

#include <CGELWorld.h>

Inheritance diagram for cGELWorldCollision:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 cGELWorldCollision (cGELWorld *a_gelWorld)
 Constructor of cGELWorldCollision.
virtual ~cGELWorldCollision ()
 Destructor of cGELWorldCollision.
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, cCollisionRecorder &a_recorder, cCollisionSettings &a_settings)
 Return the nearest triangle intersected by the given segment, if any.


Detailed Description

cGELWorldCollision provides a collision detection model to support deformable objects.

Member Function Documentation

bool cGELWorldCollision::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 cGELWorld 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:


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