Changeset 4694 in orxonox.OLD for orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc
- Timestamp:
- Jun 24, 2005, 6:10:13 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc
r4688 r4694 65 65 entityList = new tList<WorldEntity>(); 66 66 67 TestEntity* a = new TestEntity(); 68 Environment* b = new Environment(); 67 TestEntity* a = new TestEntity(); a->setName("Clown1"); 68 Environment* b = new Environment(); b->setName("Jaeger"); 69 69 b->setRelCoor(0.0, 0.0, -10.0); 70 71 TestEntity* c = new TestEntity(); c->setName("Colwn2"); 72 c->setRelCoor(0.0, 0.0, -20.0); 70 73 71 74 entityList->add(a); 72 75 entityList->add(b); 76 entityList->add(c); 73 77 74 78 CDEngine::getInstance()->setEntityList(entityList); … … 205 209 dt = currentFrame - lastFrame; 206 210 207 if( dt > 10)211 if( dt > 0) 208 212 { 209 213 float fps = 1000/dt; 210 214 211 215 // temporary, only for showing how fast the text-engine is 212 char tmpChar[20]; 213 sprintf(tmpChar, "fps: %4.0f", fps); 216 printf("we got %f fps\n", fps); 214 217 } 215 218 else
Note: See TracChangeset
for help on using the changeset viewer.