Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5045 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
Aug 16, 2005, 9:03:21 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: removed the debug draw again, rearangement in the mainloop: update/collision process order is very delcate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r5044 r5045  
    746746  this->lastFrame = SDL_GetTicks ();
    747747  PRINTF(3)("World::mainLoop() - Entering main loop\n");
     748  /* update the object position before game start - so there are no wrong coordinates used in the first processing */
     749  NullParent::getInstance()->update (0.001f);
     750
    748751  while( !this->bQuitOrxonox && !this->bQuitCurrentGame) /* @todo implement pause */
    749752    {
     
    758761      // Process time
    759762      this->tick ();
     763      // Process collision
     764      this->collide ();
    760765      // Update the state
    761766      this->update ();
    762       // Process collision
    763       this->collide ();
    764767      // Draw
    765768      this->display ();
    766 
    767       //      for( int i = 0; i < 5000000; i++) {}
    768       /* @todo this is to slow down the program for openGl Software emulator computers, reimplement*/
    769     }
     769    }
     770
    770771  PRINTF(3)("World::mainLoop() - Exiting the main loop\n");
    771772}
     
    926927  {
    927928    if( entity->isVisible() ) entity->draw();
    928     entity->drawBVTree(2, 226);
     929    //entity->drawBVTree(2, 226);  // to draw the bounding boxes of the objects at level 2 for debug purp
    929930    entity = iterator->nextElement();
    930931  }
Note: See TracChangeset for help on using the changeset viewer.