Changeset 4706 in orxonox.OLD for orxonox/trunk/src/subprojects/collision_detection
- Timestamp:
- Jun 26, 2005, 5:19:05 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc
r4705 r4706 224 224 dt = currentFrame - lastFrame; 225 225 226 if( dt > 0)227 {228 float fps = 1000/dt;229 230 // temporary, only for showing how fast the text-engine is231 printf("we got %f fps\n", fps);232 }233 else234 {235 /* the frame-rate is limited to 100 frames per second, all other things are for nothing.236 */237 SDL_Delay(1);238 dt = 10;239 }240 226 241 227 b->shiftCoor(Vector(0.0, 0.0, iterata)); … … 246 232 while( entity != NULL) /* nextElement() will return NULL at the end */ 247 233 { 248 entity->tick( 0.1);234 entity->tick(dt); 249 235 entity = iterator->nextElement(); /* give back the next element or NULL if last */ 250 236 } … … 266 252 if( drawModel) 267 253 entity->draw(); 268 entity->drawBVTree(depth, drawMode);254 //entity->drawBVTree(depth, drawMode); 269 255 entity = iterator->nextElement(); /* give back the next element or NULL if last */ 270 256 }
Note: See TracChangeset
for help on using the changeset viewer.