Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Aug 16, 2005, 11:33:15 PM (20 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/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}
Note: See TracChangeset for help on using the changeset viewer.