Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 26, 2005, 2:05:36 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: implemented cosine rotation function. still looks wicked

File:
1 edited

Legend:

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

    r3975 r3976  
    394394void Animation3D::rCosine(float timePassed) const
    395395{
     396  float scale = cos(M_PI * timePassed / this->currentKeyFrame->duration);
     397  this->object->setRelDir(quatSlerp( this->nextKeyFrame->direction,
     398                                     this->currentKeyFrame->direction,
     399                                     scale) );
    396400}
    397401
Note: See TracChangeset for help on using the changeset viewer.