Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5354 in orxonox.OLD for trunk/src/lib/graphics


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/lib/graphics/render2D/element_2d.cc

    r5286 r5354  
    622622    if (unlikely(this->toCoordinate != NULL))
    623623    {
    624       Vector moveVect = (*this->toCoordinate - this->getRelCoor2D()) *dt*bias;
     624      Vector moveVect = (*this->toCoordinate - this->getRelCoor2D()) *fabsf(dt)*bias;
    625625
    626626      if (likely(moveVect.len() >= .001))//PNODE_ITERATION_DELTA))
     
    637637    if (unlikely(this->toDirection != NULL))
    638638    {
    639       float rotFlot = (*this->toDirection - this->getRelDir2D()) *dt*bias;
     639      float rotFlot = (*this->toDirection - this->getRelDir2D()) *fabsf(dt)*bias;
    640640      if (likely(rotFlot >= .001))//PNODE_ITERATION_DELTA))
    641641      {
Note: See TracChangeset for help on using the changeset viewer.