Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 24, 2005, 12:57:36 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: the bounding volumes now get rendered at the right place

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/world_entity.cc

    r4682 r4684  
    201201
    202202
     203void WorldEntity::drawBVTree(int depth, int drawMode)
     204{
     205  glMatrixMode(GL_MODELVIEW);
     206  glPushMatrix();
     207  float matrix[4][4];
     208
     209  /* translate */
     210  glTranslatef (this->getAbsCoor ().x,
     211                this->getAbsCoor ().y,
     212                this->getAbsCoor ().z);
     213  /* rotate */
     214  this->getAbsDir ().matrix (matrix);
     215  glMultMatrixf((float*)matrix);
     216
     217  if (this->obbTree)
     218    this->obbTree->drawBV(depth, drawMode);
     219  glPopMatrix();
     220}
     221
    203222/**
    204223   \brief this handles incoming command messages
Note: See TracChangeset for help on using the changeset viewer.