Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 22, 2005, 1:42:42 PM (18 years ago)
Author:
patrick
Message:

collision_detection: cleanup and recode of some small parts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/collision_detection/src/lib/collision_detection/obb_tree_node.h

    r5702 r5703  
    2525
    2626  public:
    27     OBBTreeNode();
     27    OBBTreeNode(const OBBTree* tree);
    2828    virtual ~OBBTreeNode();
    2929
     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   
    3033    virtual void spawnBVTree(const int depth, const sVec3D *verticesList, unsigned int length);
    3134    virtual void spawnBVTree(const int depth, const modelInfo& modelInf,
    3235                             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;}
    3736
    3837    virtual void collideWith(BVTreeNode* treeNode, WorldEntity* nodeA, WorldEntity* nodeB);
     
    6665    int                 numOfVertices;              //!< number of vertices in vertices data
    6766    int                 depth;                      //!< the depth of the node in the tree
    68     static OBBTree*     obbTree;                    //!< reference to the obb tree
     67    const OBBTree*      obbTree;                    //!< reference to the obb tree
    6968    Plane               separationPlane;            //!< the separation plane of the obb
    7069    const sVec3D*       sepPlaneCenter;             //!< only needed to draw plane
Note: See TracChangeset for help on using the changeset viewer.