46 #ifndef CGenericCollisionH 47 #define CGenericCollisionH This class implements a 3D vector.
Definition: CVector3d.h:88
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
int m_displayDepth
Definition: CGenericCollision.h:165
virtual ~cGenericCollision()
Destructor of cGenericCollision.
Definition: CGenericCollision.h:114
virtual bool computeCollision(cGenericObject *a_object, cVector3d &a_segmentPointA, cVector3d &a_segmentPointB, cCollisionRecorder &a_recorder, cCollisionSettings &a_settings)
This method computes all collisions between a segment passed as argument and the attributed 3D object...
Definition: CGenericCollision.h:127
This class implements a base class for collision detection.
Definition: CGenericCollision.h:101
double m_radiusAroundElements
Definition: CGenericCollision.h:171
double getDisplayDepth() const
This method returns the level inside the collision tree being displayed. (root = 0).
Definition: CGenericCollision.h:144
virtual void render(cRenderOptions &a_options)
This method renders a visual representation of the collision tree.
Definition: CGenericCollision.h:135
double getBoundaryRadius() const
This method returns the radius of the boundary shell that covers every triangles. ...
Definition: CGenericCollision.h:138
cColorf m_color
Color property used to render the collision detector graphically.
Definition: CGenericCollision.h:152
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition: CGenericObject.h:112
This class implements a collision detection recorder that stores all collision events that are report...
Definition: CCollisionBasics.h:185
void setDisplayDepth(const int a_depth)
This method sets the level of the collision tree to display.
Definition: CGenericCollision.h:141
This structure stores the collision settings that are passed to a collision detector when querying fo...
Definition: CCollisionBasics.h:242
Implements basic data structures for storing collision events.
This class defines a color using a GLfloat representation for each component.
Definition: CColor.h:138
cGenericCollision()
Constructor of cGenericCollision.
Definition: CGenericCollision.cpp:58
Definition: CAudioBuffer.cpp:56
virtual void update()
This methods updates the collision detector and should be called if the 3D model it represents is mod...
Definition: CGenericCollision.h:124