Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3731 in orxonox.OLD for orxonox/trunk/src/simple_animation.cc


Ignore:
Timestamp:
Apr 6, 2005, 12:44:49 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: animation player now works for two keyframes.

File:
1 edited

Legend:

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

    r3730 r3731  
    275275    case LINEAR:
    276276
    277       *this->tmpVect = *this->currentFrame->position - *this->lastFrame->position;
     277      *this->tmpVect = *this->lastFrame->position - *this->currentFrame->position;
    278278      *this->tmpVect = *this->tmpVect * this->localTime / this->currentFrame->time;
    279       this->currentFrame->object->shiftCoor(*this->tmpVect - *this->lastPosition);
     279      //this->currentFrame->object->shiftCoor(*this->tmpVect - *this->lastPosition);
     280      this->currentFrame->object->setRelCoor(*this->currentFrame->position + *this->tmpVect);
    280281      *this->lastPosition = *this->tmpVect;
     282      //printf("shift vector: ");this->lastPosition->debug();
    281283      break;
    282284    case EXP:
Note: See TracChangeset for help on using the changeset viewer.