Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3645 in orxonox.OLD


Ignore:
Timestamp:
Mar 23, 2005, 3:51:56 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: temporaty path to the VIEW_TOP error mentioned by Patrick

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/camera.cc

    r3643 r3645  
    136136{
    137137  dt /= 500;
    138   this->fovy += (this->toFovy - this->fovy) * dt;
    139   Vector tmp = this->getRelCoor() + (this->toRelCoor - this->getRelCoor()) * dt;
    140   this->setRelCoor(&tmp);
     138  float tmpFovy = (this->toFovy - this->fovy) * dt;
     139  if (tmpFovy > .001)
     140    this->fovy += (this->toFovy - this->fovy) * dt;
     141  Vector tmpPos = (this->toRelCoor - this->getRelCoor()) * dt;
     142  if (tmpPos.len() >= .001)
     143    {
     144      tmpPos = tmpPos + this->getRelCoor();
     145      this->setRelCoor(&tmpPos);
     146    }
    141147}
    142148
  • orxonox/trunk/src/defs/debug.h

    r3617 r3645  
    5858// DEFINE MODULES \\
    5959#define DEBUG_MODULE_ORXONOX            2
    60 #define DEBUG_MODULE_WORLD              2
     60#define DEBUG_MODULE_WORLD              3
    6161#define DEBUG_MODULE_PNODE              2
    6262#define DEBUG_MODULE_WORLD_ENTITY       2
Note: See TracChangeset for help on using the changeset viewer.