Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3856 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
Apr 17, 2005, 2:58:24 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: doxy-todo's

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

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

    r3855 r3856  
    243243   \brief linear interpolation between this keyframe and the next one
    244244   \param timePassed The time passed since this Keyframe began
     245
     246   \todo implement also do this for direction
    245247*/
    246248void Animation3D::linear(float timePassed) const
     
    254256   \brief a Sinusodial Interpolation between this keyframe and the next one
    255257   \param timePassed The time passed since this Keyframe began
     258
     259   \todo implement
    256260*/
    257261void Animation3D::sine(float timePassed) const
    258262{
    259 
     263  this->linear(timePassed);
    260264}
    261265
     
    263267   \brief a cosine interpolation between this keyframe and the next one
    264268   \param timePassed The time passed since this Keyframe began
     269
     270   \todo implement
    265271*/
    266272void Animation3D::cosine(float timePassed) const
    267273{
    268 
     274  this->linear(timePassed);
    269275}
    270276
     
    275281void Animation3D::exp(float timePassed) const
    276282{
    277 
     283  this->linear(timePassed);
    278284}
    279285
     
    281287   \brief a negative exponential interpolation between this keyframe and the next one
    282288   \param timePassed The time passed since this Keyframe began
     289
     290   \todo implement
    283291*/
    284292void Animation3D::negExp(float timePassed) const
     
    290298   \brief a quadratic interpolation between this keyframe and the next one
    291299   \param timePassed The time passed since this Keyframe began
     300
     301   \todo implement
    292302*/
    293303void Animation3D::quadratic(float timePassed) const
    294304{
    295 
     305  this->linear(timePassed);
    296306}
    297307
     
    302312void Animation3D::random(float timePassed) const
    303313{
    304 
    305 }
     314  this->object->setRelCoor(this->currentKeyFrame->position * (float)rand()/(float)RAND_MAX);
     315  this->object->setRelDir(this->currentKeyFrame->direction * (float)rand()/(float)RAND_MAX);
     316}
  • orxonox/trunk/src/t_animation.h

    r3855 r3856  
    332332float tAnimation<T>::quadratic(float timePassed) const
    333333{
    334 
     334  this->linear(timePassed);
    335335}
    336336
Note: See TracChangeset for help on using the changeset viewer.