Changeset 5054 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Aug 16, 2005, 11:33:15 PM (19 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/environment.cc
r5047 r5054 59 59 void Environment::draw () 60 60 { 61 //this->getRelCoor().debug();62 63 61 glMatrixMode(GL_MODELVIEW); 64 62 glPushMatrix(); -
orxonox/trunk/src/world_entities/npc.cc
r5053 r5054 17 17 18 18 19 //#include "ai.h"20 21 19 #include "npc.h" 22 20 #include "obb_tree.h" … … 33 31 34 32 this->loadModel("models/ships/bolido.obj"); 35 if( this->obbTree == NULL)33 if( this->obbTree == NULL) 36 34 this->obbTree = new OBBTree(4, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 37 35 } … … 53 51 54 52 //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)); 56 54 57 55 } -
orxonox/trunk/src/world_entities/weapons/test_bullet.cc
r4982 r5054 24 24 #include "fast_factory.h" 25 25 26 #include "obb_tree.h" 27 26 28 using namespace std; 27 29 … … 37 39 float modelSize = .3; 38 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()); 39 44 40 45 this->energyMin = 1;
Note: See TracChangeset
for help on using the changeset viewer.