Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

collision_detection: slowly removing old functions and exchanging them with the new interface

File:
1 edited

Legend:

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

    r5704 r5705  
    3232    virtual inline const BoundingVolume* getBV() const { return (BoundingVolume*)this->bvElement; }
    3333   
     34   
    3435    virtual void spawnBVTree(const int depth, const sVec3D *verticesList, unsigned int length);
    3536    virtual void spawnBVTree(const int depth, const modelInfo& modelInf,
     
    3738
    3839    virtual void collideWith(BVTreeNode* treeNode, WorldEntity* nodeA, WorldEntity* nodeB);
    39 
    4040    virtual void drawBV(int depth, int drawMode, const Vector& color = Vector(1,0,0), bool top = true) const;
    41 
    4241    void debug() const;
    4342
     43   
    4444  private:
    45     void calculateBoxCovariance(OBB* box, const sVec3D* verticesList, unsigned int length);
    4645    void calculateBoxEigenvectors(OBB* box, const sVec3D* verticesList, unsigned int length);
    4746    void calculateBoxAxis(OBB* box, const sVec3D* verticesList, unsigned int length);
     
    5150    void calculateBoxAxis(OBB* box, const modelInfo& modelInf, const int* triangleIndexes, unsigned int length);
    5251
    53 
    5452    void forkBox(OBB* box);
    5553
    5654    bool overlapTest(OBB* boxA, OBB* boxB, WorldEntity* nodeA, WorldEntity* nodeB);
    5755
     56   
    5857  protected:
    5958    OBB*                bvElement;                  //!< the obb element
     
    6160    OBBTreeNode*        nodeRight;                  //!< ref to the right tree node
    6261
     62
    6363  private:
    6464    unsigned int        treeIndex;                  //!< Index number of the BV in the tree
     65    int                 depth;                      //!< the depth of the node in the tree
     66    const OBBTree*      obbTree;                    //!< reference to the obb tree
     67   
    6568    const sVec3D*       vertices;                   //!< pointer to the vertices data
    6669    int                 numOfVertices;              //!< number of vertices in vertices data
    67     int                 depth;                      //!< the depth of the node in the tree
    68     const OBBTree*      obbTree;                    //!< reference to the obb tree
    6970    Plane               separationPlane;            //!< the separation plane of the obb
    7071    const sVec3D*       sepPlaneCenter;             //!< only needed to draw plane
     
    8182    static float*       eigvlMat;
    8283    static int*         rotCount;
     84   
    8385};
    8486
Note: See TracChangeset for help on using the changeset viewer.