Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5054 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.