Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5055 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
Aug 16, 2005, 11:38:15 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: testBullet now loads it model as it should

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

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

    r5054 r5055  
    931931  while( entity != NULL )
    932932  {
    933     //if( entity->isVisible() ) entity->draw();
    934     entity->drawBVTree(2, 226);  // to draw the bounding boxes of the objects at level 2 for debug purp
     933    if( entity->isVisible() ) entity->draw();
     934    //entity->drawBVTree(2, 226);  // to draw the bounding boxes of the objects at level 2 for debug purp
    935935    entity = iterator->nextElement();
    936936  }
  • orxonox/trunk/src/world_entities/weapons/test_bullet.cc

    r5054 r5055  
    3838
    3939  float modelSize = .3;
    40   this->model = (Model*)ResourceManager::getInstance()->load("models/projectiles/orx-rocket.obj", OBJ, RP_LEVEL, (void*) &modelSize);
    41 
    42   if(this->obbTree == NULL)
    43     this->obbTree = new OBBTree(4, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
     40  this->loadModel("models/projectiles/orx-rocket.obj");
    4441
    4542  this->energyMin = 1;
Note: See TracChangeset for help on using the changeset viewer.