47 #ifndef CCollisionAABBTreeH 48 #define CCollisionAABBTreeH 123 void render(
int a_depth = -1);
This class implements a 3D vector.
Definition: CVector3d.h:88
cAABBNodeType
Internal AABB Node Types.
Definition: CCollisionAABBTree.h:68
int m_rightSubTree
Right child node index.
Definition: CCollisionAABBTree.h:153
Definition: CCollisionAABBTree.h:71
void render(int a_depth=-1)
This method draws the edges of the boundary box for this node, if at the given depth.
Definition: CCollisionAABBTree.cpp:182
cCollisionAABBBox m_bbox
Bounding box for this node.
Definition: CCollisionAABBTree.h:141
This structure implements a tree node inside an AABB collision tree.
Definition: CCollisionAABBTree.h:86
int m_depth
Depth of this node in the collision tree.
Definition: CCollisionAABBTree.h:144
Definition: CCollisionAABBTree.h:72
Definition: CCollisionAABBTree.h:70
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
cCollisionAABBNode()
Constructor of cCollisionAABBNode.
Definition: CCollisionAABBTree.cpp:60
This structure stores the collision settings that are passed to a collision detector when querying fo...
Definition: CCollisionBasics.h:242
virtual ~cCollisionAABBNode()
Destructor of cCollisionAABBNode.
Definition: CCollisionAABBTree.h:98
Implements an axis-aligned bounding box collision tree (AABB)
void fitBBox(double a_radius, cVector3d &a_vertex0)
This method creates a boundary box for a point.
Definition: CCollisionAABBTree.cpp:79
Implements basic data structures for storing collision events.
Implements an axis-aligned bounding box collision tree (AABB)
This structure implements the boundary nodes of an axis-aligned bounding box.
Definition: CCollisionAABBBox.h:84
cAABBNodeType m_nodeType
Node type.
Definition: CCollisionAABBTree.h:147
Definition: CAudioBuffer.cpp:56
int m_leftSubTree
Left child node index.
Definition: CCollisionAABBTree.h:150
bool computeCollision(cGenericObject *a_owner, cVector3d &a_segmentPointA, cVector3d &a_segmentDirection, cCollisionAABBBox &a_lineBox, cCollisionRecorder &a_recorder, cCollisionSettings &a_settings)
This method determines whether a line segment intersects any elements covered by this node...