Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5033 in orxonox.OLD for orxonox/trunk/src/world_entities/npc.cc


Ignore:
Timestamp:
Aug 15, 2005, 9:59:57 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: obb trees are now created for every object in the world. this will use some extra seconds in the startup and will also take some ms in the collision detection algorithm test. took 30fps here… will try to optimize it…

File:
1 edited

Legend:

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

    r5029 r5033  
    2020
    2121#include "npc.h"
     22#include "obb_tree.h"
    2223
    2324#include "state.h"
     
    3233
    3334  this->loadModel("models/ships/bolido.obj");
     35  if(this->obbTree == NULL)
     36    this->obbTree = new OBBTree(5, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
    3437}
    3538
     
    5356
    5457
     58
Note: See TracChangeset for help on using the changeset viewer.