Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2005, 1:31:23 AM (18 years ago)
Author:
patrick
Message:

collision_detection: very much work on the cd engine, now the obbs do assemble again, but not yet correctly. Much more debug work to come..

File:
1 edited

Legend:

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

    r5718 r5882  
    1717
    1818//! A class for representing an obb tree
    19 class OBBTree : public BVTree {
     19class OBBTree : public BVTree
     20{
    2021
    2122  public:
    22     OBBTree(int depth, sVec3D *verticesList, const int length);
    2323    OBBTree(int depth, const modelInfo& modInfo);
    2424    virtual ~OBBTree();
    2525    void init();
    2626
    27     virtual void spawnBVTree(sVec3D *verticesList, const int length);
    2827    virtual void spawnBVTree(const modelInfo& modelInf);
    2928    virtual void flushTree();
    3029
    3130    virtual void collideWith(const WorldEntity& entity1, const WorldEntity& entity2) const;
    32 
    3331    virtual void drawBV(int depth, int drawMode) const;
    3432
     33    /** returns the next if for the obb tree node @return integer id number of the next node */
    3534    const int getID() { return ++this->id;}
     35    /** returns the root node of the bounding volume tree @return reference to the root node */
    3636    inline const OBBTreeNode* getRootNode() const { return this->rootNode; }
    3737
Note: See TracChangeset for help on using the changeset viewer.