Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3970 in orxonox.OLD for orxonox/trunk/src/util/animation


Ignore:
Timestamp:
Apr 26, 2005, 1:03:11 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: testet quatSLERP, this function does not seem to work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/animation/animation3d.cc

    r3968 r3970  
    134134      /* now animate it */
    135135      (this->*animFunc)(this->localTime);
    136  
    137136    }
    138137}
     
    203202                          (this->nextKeyFrame->position - this->currentKeyFrame->position) *
    204203                          (timePassed/this->currentKeyFrame->duration));
     204
     205  this->object->setRelDir( this->nextKeyFrame->direction.quatSlerp( this->nextKeyFrame->direction,
     206                                                                    this->currentKeyFrame->direction, timePassed /
     207                                                                    this->currentKeyFrame->duration) );
     208
    205209}
    206210
Note: See TracChangeset for help on using the changeset viewer.