Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7131 in orxonox.OLD for trunk/src/story_entities/simple_game_menu.cc


Ignore:
Timestamp:
Feb 14, 2006, 12:23:11 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: framerate calculation is much more 'accurate' meaning, if it is falling from one value into another one, the rate will be averanged to the middle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/simple_game_menu.cc

    r7063 r7131  
    296296  GameWorld::tick();
    297297
    298   this->animateScene(this->dt);
     298  this->animateScene(this->dtS);
    299299}
    300300
     
    314314void SimpleGameMenu::animateScene(float dt)
    315315{
    316   Quaternion q(/*0.00005*/ 0.0001* dt, Vector(0.0, 1.0, 0.0));
     316  Quaternion q(/*0.00005*/ dt * .1, Vector(0.0, 1.0, 0.0));
    317317  this->cameraVector = q.apply(this->cameraVector);
    318318  this->dataTank->localCamera->setRelCoor(this->cameraVector);
Note: See TracChangeset for help on using the changeset viewer.