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.cc

    r5718 r5882  
    3131 *  standard constructor
    3232*/
    33 OBBTree::OBBTree(int depth, sVec3D *verticesList, const int length)
    34   : BVTree()
    35 {
    36   this->depth = depth;
    37   this->init();
    38   this->spawnBVTree(verticesList, length);
    39 }
    40 
    41 
    4233OBBTree::OBBTree(int depth, const modelInfo& modelInf)
    4334  : BVTree()
     
    6657}
    6758
    68 
    69 void OBBTree::spawnBVTree(sVec3D *verticesList, const int length)
    70 {
    71   if( unlikely(this->rootNode != NULL))
    72     {
    73       PRINTF(2)("The BVTree has already been spawned, flushing and respawning again...\n");
    74       this->flushTree();
    75     }
    76   OBBTreeNode* node = new OBBTreeNode(*this, depth);
    77   this->rootNode = node;
    78   this->rootNode->spawnBVTree(verticesList, length);
    79 }
    8059
    8160
     
    150129    }
    151130
    152   this->spawnBVTree(vertList, length);
     131//   this->spawnBVTree(vertList, length);
    153132
    154133  PRINT(0)("=  Spawning Tree: Finished\n");
Note: See TracChangeset for help on using the changeset viewer.