Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5354 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Oct 10, 2005, 1:13:56 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: animationing is reversible over time (try setting in the SHELL: World speed -1

File:
1 edited

Legend:

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

    r5037 r5354  
    178178void Camera::tick(float dt)
    179179{
    180   float tmpFovy = (this->toFovy - this->fovy) * dt;
    181   if (tmpFovy > .001)
    182     this->fovy += (this->toFovy - this->fovy) * dt;
     180  float tmpFovy = (this->toFovy - this->fovy) ;
     181  if (tmpFovy > .01)
     182    this->fovy += tmpFovy * fabsf(dt);
    183183}
    184184
Note: See TracChangeset for help on using the changeset viewer.