Changeset 7711 in orxonox.OLD for trunk/src/subprojects/collision_detection/collision_detection.cc
- Timestamp:
- May 18, 2006, 11:44:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/subprojects/collision_detection/collision_detection.cc
r7157 r7711 48 48 //Terrain* c; 49 49 bool animateModel = false; 50 51 50 52 51 53 void Framework::moduleInit(int argc, char** argv) … … 76 78 // CDEngine::getInstance()->debugSpawnTree(9, (sVec3D*)mod->getVertexArray(), mod->getVertexArrayCount()); 77 79 78 79 80 entityList = new tList<WorldEntity>(); 81 82 // a = new TestEntity(); a->setName("Clown1"); 83 b = new CollisionTestEntity(); b->setName("Jaeger"); 80 entityList = new tList<WorldEntity>(); 81 84 82 if (argc > 1) 85 83 { 86 84 printf("Loading model %s\n", argv[1]); 87 b ->loadModel(argv[1]);85 b = new CollisionTestEntity(argv[1]); b->setName("Jaeger"); 88 86 } 89 // a = new Terrain(); 90 87 else 88 { 89 printf("----------------------- WARNING ---------------------\n\n"); 90 printf("no path specified, using default model: models/ships/fighter.obj\n\n"); 91 printf("----------------------- WARNING ---------------------\n"); 92 b = new CollisionTestEntity("models/test/cd_test_0.obj"); b->setName("Jaeger"); 93 } 91 94 // b->setRelCoor(0.0, 0.0, -20.0); 92 95 // b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0))); 93 94 entityList->add(b); 96 if(b != NULL) 97 printf("model successfully loaded\n"); 98 entityList->add(b); 99 100 101 // a = new Terrain(); 102 103 95 104 // entityList->add(b); 96 105 … … 261 270 entity->draw(); 262 271 entity->drawBVTree(depth, drawMode); 263 printf("%i, %i\n", depth, drawMode);272 // printf("%i, %i\n", depth, drawMode); 264 273 entity = iterator->nextElement(); 265 274 }
Note: See TracChangeset
for help on using the changeset viewer.