Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 21, 2005, 3:32:54 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: the way, where the fighter flights though is now drawn in quadtree partitions. now you can see where the space craft has been :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/spatial_separation/quadtree.cc

    r4920 r4921  
    162162    printf("-----------\nthe array coordinates are: %i, %i\n", i, j);
    163163    printf("position: %f,%f, center %f, %f\n", position.x, position.z, this->nodes[i + j * max]->getDimension()->getCenter()->x, this->nodes[i + j * max]->getDimension()->getCenter()->z);
    164     this->nodes[i + j * max]->drawTree(0,0);
     164
     165    //this->nodes[i + j * max]->draw();
    165166    this->nodes[i + j * max]->includesPoint(position);
    166167  }
    167168  else
    168169    printf("object has left terrain\n");
    169 
    170170}
    171171
     
    179179  for(int i = 0; i < (int)pow(4, this->treeDepth); ++i)
    180180  {
    181     //this->nodes[i]->drawTree(0, 0);
     181    this->nodes[i]->draw();
    182182  }
    183183
Note: See TracChangeset for help on using the changeset viewer.