Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5429 in orxonox.OLD for trunk/src/story_entities/world.cc


Ignore:
Timestamp:
Oct 24, 2005, 7:36:22 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: bounding volumes now toggeable via shell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/world.cc

    r5406 r5429  
    7676SHELL_COMMAND(speed, World, setSpeed);
    7777SHELL_COMMAND(togglePNodeVisibility, World, togglePNodeVisibility);
     78SHELL_COMMAND(toggleBVVisibility, World, toggleBVVisibility);
    7879
    7980using namespace std;
     
    174175
    175176  this->showPNodes = false;
     177  this->showBV = false;
    176178}
    177179
     
    972974  {
    973975    if( entity->isVisible() ) entity->draw();
    974     //entity->drawBVTree(2, 226);  // to draw the bounding boxes of the objects at level 2 for debug purp
     976    if( unlikely( this->showBV)) entity->drawBVTree(3, 226);  // to draw the bounding boxes of the objects at level 2 for debug purp
    975977    entity = iterator->nextElement();
    976978  }
Note: See TracChangeset for help on using the changeset viewer.