Changeset 5882 in orxonox.OLD for branches/collision_detection/src/lib/collision_detection/obb_tree.h
- Timestamp:
- Dec 3, 2005, 1:31:23 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/src/lib/collision_detection/obb_tree.h
r5718 r5882 17 17 18 18 //! A class for representing an obb tree 19 class OBBTree : public BVTree { 19 class OBBTree : public BVTree 20 { 20 21 21 22 public: 22 OBBTree(int depth, sVec3D *verticesList, const int length);23 23 OBBTree(int depth, const modelInfo& modInfo); 24 24 virtual ~OBBTree(); 25 25 void init(); 26 26 27 virtual void spawnBVTree(sVec3D *verticesList, const int length);28 27 virtual void spawnBVTree(const modelInfo& modelInf); 29 28 virtual void flushTree(); 30 29 31 30 virtual void collideWith(const WorldEntity& entity1, const WorldEntity& entity2) const; 32 33 31 virtual void drawBV(int depth, int drawMode) const; 34 32 33 /** returns the next if for the obb tree node @return integer id number of the next node */ 35 34 const int getID() { return ++this->id;} 35 /** returns the root node of the bounding volume tree @return reference to the root node */ 36 36 inline const OBBTreeNode* getRootNode() const { return this->rootNode; } 37 37
Note: See TracChangeset
for help on using the changeset viewer.