Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5054 in orxonox.OLD


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

orxonox/trunk: only obb boxes drawn, obbtree of projectiles also generated

Location:
orxonox/trunk/src
Files:
4 edited

Legend:

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

    r5051 r5054  
    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/environment.cc

    r5047 r5054  
    5959void Environment::draw ()
    6060{
    61   //this->getRelCoor().debug();
    62 
    6361  glMatrixMode(GL_MODELVIEW);
    6462  glPushMatrix();
  • orxonox/trunk/src/world_entities/npc.cc

    r5053 r5054  
    1717
    1818
    19 //#include "ai.h"
    20 
    2119#include "npc.h"
    2220#include "obb_tree.h"
     
    3331
    3432  this->loadModel("models/ships/bolido.obj");
    35   if(this->obbTree == NULL)
     33  if( this->obbTree == NULL)
    3634    this->obbTree = new OBBTree(4, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
    3735}
     
    5351
    5452  //if (directin.len() < 100)
    55   this->shiftCoor(direction *dt * 5 * exp(-direction.len()/30.0));
     53  this->shiftCoor(direction *dt * 5 * exp(-direction.len() / 30.0));
    5654
    5755}
  • orxonox/trunk/src/world_entities/weapons/test_bullet.cc

    r4982 r5054  
    2424#include "fast_factory.h"
    2525
     26#include "obb_tree.h"
     27
    2628using namespace std;
    2729
     
    3739  float modelSize = .3;
    3840  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());
    3944
    4045  this->energyMin = 1;
Note: See TracChangeset for help on using the changeset viewer.