Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

orxonox/trunk: now there is a possibility to render the bvtree through the world entities, the bvtree is a member of the worldentity

File:
1 edited

Legend:

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

    r4679 r4682  
    2121#include "model.h"
    2222#include "md2Model.h"
     23#include "obb_tree.h"
    2324
    2425using namespace std;
     
    3132
    3233  this->md2Model = new MD2Model("models/tris.md2", "models/tris.pcx");
     34  this->obbTree = new OBBTree(4, (sVec3D*)this->md2Model->data->pVertices, this->md2Model->data->numVertices);
    3335  this->md2Model->debug();
    3436}
     
    7274  this->getAbsDir().matrix (matrix);
    7375  glMultMatrixf((float*)matrix);
    74   glScalef(0.2, 0.2, 0.2);
    7576  this->md2Model->draw();
    7677
Note: See TracChangeset for help on using the changeset viewer.