Changeset 4710 in orxonox.OLD for orxonox/trunk/src/subprojects/collision_detection
- Timestamp:
- Jun 26, 2005, 10:10:48 PM (19 years ago)
- Location:
- orxonox/trunk/src/subprojects/collision_detection
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/subprojects/collision_detection/Makefile.am
r4679 r4710 41 41 $(MAINSRCDIR)/world_entities/world_entity.cc 42 42 43 #$(MAINSRCDIR)/util/loading/load_param.cc 43 44 44 45 -
orxonox/trunk/src/subprojects/collision_detection/Makefile.in
r4679 r4710 878 878 include $(MAINSRCDIR)/defs/include_paths.am 879 879 880 #$(MAINSRCDIR)/util/loading/load_param.cc 881 880 882 # $(MAINSRCDIR)/util/loading/game_loader.cc \ 881 883 # $(MAINSRCDIR)/util/track/track_manager.cc \ -
orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc
r4708 r4710 29 29 #include "test_entity.h" 30 30 #include "environment.h" 31 31 32 32 33 #include "graphics_engine.h" … … 44 45 bool drawModel; 45 46 46 Environment* a; 47 Environment* b; 47 WorldEntity* a; 48 WorldEntity* b; 49 //Terrain* c; 48 50 49 51 void Framework::moduleInit(int argc, char** argv) … … 53 55 CDEngine::getInstance(); 54 56 55 /* Simple Test */ 56 //CDEngine::getInstance()->debug(); 57 /* Primitive Data Test */ 58 // sVec3D* data = new sVec3D[6]; 59 // float tmp[6][3] = {{0.0, 4.2, 2.4}, {3.0, 3.0, 2.0}, {5.0, 1.0, 6.0}, {6.5, 1.0, 3.0}, {7.0, 3.0, 5.0}, {8.0, 6.0, 6.0}}; 60 // for(int i = 0; i < 6; ++i) 61 // { 62 // data[i][0] = tmp[i][0]; 63 // data[i][1] = tmp[i][1]; 64 // data[i][2] = tmp[i][2]; 65 // } 66 // CDEngine::getInstance()->debugSpawnTree(5, data, 6); 57 67 58 68 /* MD2 Model Test */ … … 69 79 entityList = new tList<WorldEntity>(); 70 80 71 //a = new TestEntity(); a->setName("Clown1"); 72 a = new Environment(); a->setName("Clown"); 73 b = new Environment(); b->setName("Jaeger"); 81 a = new TestEntity(); a->setName("Clown1"); 82 b = new Environment(); a->setName("Clown"); 83 //b = new Environment(); b->setName("Jaeger"); 84 //c = new Terrain(); 74 85 75 86 b->setRelCoor(0.0, 0.0, -10.0); 76 b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0))); 77 78 // TestEntity* c = new TestEntity(); c->setName("Colwn2"); 79 // c->setRelCoor(0.0, 0.0, -20.0); 87 //b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0))); 80 88 81 89 entityList->add(a); … … 85 93 86 94 LightManager* lightMan = LightManager::getInstance(); 87 lightMan->setAmbientColor(.1,.1,.1);95 lightMan->setAmbientColor(.1,.1,.1); 88 96 lightMan->addLight(); 89 lightMan->setPosition( 30, 30, 30);97 lightMan->setPosition(-5.0, 50.0, -40.0); 90 98 lightMan->addLight(); 91 lightMan->setPosition(-30, -30, -30); 99 lightMan->setPosition(100, 80, 60); 100 92 101 93 102 /* properties */ … … 223 232 224 233 225 b->shiftCoor(Vector(0.0, 0.0, iterata));234 //b->shiftCoor(Vector(0.0, 0.0, iterata)); 226 235 227 236 … … 239 248 void Framework::moduleDraw() const 240 249 { 250 //CDEngine::getInstance()->debugDraw(depth, drawMode); 251 241 252 tIterator<WorldEntity>* iterator = entityList->getIterator(); 242 253 WorldEntity* entity = iterator->nextElement(); … … 371 382 372 383 373 Slider* TreeDepth = new Slider("TreeDepth", 0, 5);384 Slider* TreeDepth = new Slider("TreeDepth", 0, 10); 374 385 TreeDepth->connectSignal("value_changed", (void*)TreeDepth, treeDepth); 375 386 windowBox->fill(TreeDepth);
Note: See TracChangeset
for help on using the changeset viewer.