#include <CCollisionSpheresGeometry.h>
Inheritance diagram for cCollisionSpheresGenericShape:
Public Member Functions | |
cCollisionSpheresGenericShape () | |
Constructor of cCollisionSpheresGenericShape. | |
virtual const cVector3d & | getCenter () const=0 |
Return center. | |
virtual double | getRadius () const=0 |
Return radius. | |
virtual bool | computeCollision (cCollisionSpheresGenericShape *a_other, cGenericObject *&a_colObject, cTriangle *&a_colTriangle, cVector3d &a_colPoint, double &a_colSquareDistance)=0 |
Determine whether this primitive intersects the given primitive. | |
virtual cCollisionSpheresLeaf * | getSphere () |
Return pointer to bounding sphere of this primitive shape. | |
virtual void | setSphere (cCollisionSpheresLeaf *a_sphere) |
Set pointer for the bounding sphere of this primitive shape. | |
bool | operator< (cCollisionSpheresGenericShape *a_other) |
Overloaded less than operator (for sorting). | |
Static Public Attributes | |
static int | m_split = 0 |
Axis on which to sort. | |
Private Attributes | |
cCollisionSpheresLeaf * | m_sphere |
Pointer to the collision sphere surrounding the primitive. |