Changeset 5703 in orxonox.OLD for branches/collision_detection/src/lib/collision_detection/obb_tree_node.h
- Timestamp:
- Nov 22, 2005, 1:42:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/src/lib/collision_detection/obb_tree_node.h
r5702 r5703 25 25 26 26 public: 27 OBBTreeNode( );27 OBBTreeNode(const OBBTree* tree); 28 28 virtual ~OBBTreeNode(); 29 29 30 /* this function returns the bounding volume of this tree node @return: returns the BV */ 31 virtual inline const BoundingVolume* getBV() const { return (BoundingVolume*)this->bvElement; } 32 30 33 virtual void spawnBVTree(const int depth, const sVec3D *verticesList, unsigned int length); 31 34 virtual void spawnBVTree(const int depth, const modelInfo& modelInf, 32 35 const int* triangleIndexes, unsigned int length); 33 34 BoundingVolume* getBV(int index) const { return (BoundingVolume*)this->bvElement; }35 inline const int getIndex() { return this->treeIndex; }36 inline void setTreeRef(OBBTree* tree) { this->obbTree = tree;}37 36 38 37 virtual void collideWith(BVTreeNode* treeNode, WorldEntity* nodeA, WorldEntity* nodeB); … … 66 65 int numOfVertices; //!< number of vertices in vertices data 67 66 int depth; //!< the depth of the node in the tree 68 static OBBTree*obbTree; //!< reference to the obb tree67 const OBBTree* obbTree; //!< reference to the obb tree 69 68 Plane separationPlane; //!< the separation plane of the obb 70 69 const sVec3D* sepPlaneCenter; //!< only needed to draw plane
Note: See TracChangeset
for help on using the changeset viewer.