Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 9:45:39 PM (19 years ago)
Author:
patrick
Message:

less debug more boxes creation obb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/lib/collision_detection/obb_tree_node.cc

    r9008 r9172  
    9090    delete this->bvElement;
    9191}
     92
     93
     94
     95void OBBTreeNode::createBox(Vector start, Vector end)
     96{
     97
     98  this->bvElement = new OBB();
     99  this->nodeLeft = NULL;
     100  this->nodeRight = NULL;
     101
     102  this->bvElement->center = (end - start) * 0.5f;
     103  this->bvElement->halfLength[0] = (end.x - start.x) * 0.5f;
     104  this->bvElement->halfLength[1] = (end.y - start.y) * 0.5f;
     105  this->bvElement->halfLength[2] = (end.z - start.z) * 0.5f;
     106}
     107
    92108
    93109
     
    682698    if( depth == 0/*!(drawMode & DRAW_SINGLE && depth != 0)*/)
    683699    {
    684       if( 1 /*drawMode & DRAW_POINTS*/)
     700      if( 0 /*drawMode & DRAW_POINTS*/)
    685701      {
    686702        glBegin(GL_POINTS);
Note: See TracChangeset for help on using the changeset viewer.