Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3872 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Apr 18, 2005, 3:54:35 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: animation fix, the AnimationMode was not reset to the start-value when rewinding

Location:
orxonox/trunk/src
Files:
3 edited

Legend:

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

    r3871 r3872  
    394394  // initializing the Animation for the Text.
    395395  this->textAnimation = new tAnimation<Text>(this->trackText, &Text::setBlending);
    396   this->textAnimation->addKeyFrame(1.0, 3.0, ANIM_COSINE);
     396  this->textAnimation->addKeyFrame(1.0, 3.0, ANIM_NEG_EXP);
    397397  this->textAnimation->addKeyFrame(0.0, .001);
    398398  this->textAnimation->setInfinity(ANIM_INF_CONSTANT);
  • orxonox/trunk/src/util/animation/animation3d.cc

    r3868 r3872  
    7272  this->nextKeyFrame = keyFrameList->nextElement(keyFrameList->firstElement());
    7373  this->localTime = 0.0;
     74  this->setAnimFunc(this->currentKeyFrame->animFunc);
    7475}
    7576
  • orxonox/trunk/src/util/animation/t_animation.h

    r3871 r3872  
    127127  this->nextKeyFrame = keyFrameList->nextElement(keyFrameList->firstElement());
    128128  this->localTime = 0.0;
     129  this->setAnimFunc(this->currentKeyFrame->animFunc);
    129130}
    130131
     
    308309float tAnimation<T>::exp(float timePassed) const
    309310{
     311  return this->linear(timePassed);
     312
    310313}
    311314
Note: See TracChangeset for help on using the changeset viewer.