Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 26, 2005, 2:13:40 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: a Hack that enables setup of animation without giving both animation3D-addkeyframe-function attributes

File:
1 edited

Legend:

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

    r3977 r3978  
    8282   \param direction The direction of the new Keyframe.
    8383   \param duration The duration from the new KeyFrame to the next one
    84    \param animFunc The function to animate between this keyFrame and the next one
     84   \param animFuncMov The function to animate position between this keyFrame and the next one
     85   \param animFuncMov The function to animate rotation between this keyFrame and the next one
    8586*/
    8687void Animation3D::addKeyFrame(Vector position, Quaternion direction, float duration, ANIM_FUNCTION animFuncMov, ANIM_FUNCTION animFuncRot)
     
    8990  if (duration <= 0.0)
    9091    duration = 1.0;
     92  // if the Rotation-Animation-function is set ANIM_NULL, animFuncRot will match animFuncRot
     93  if (animFuncRot == ANIM_NULL)
     94    animFuncRot = animFuncMov;
    9195
    9296  KeyFrame3D* tmpKeyFrame;
Note: See TracChangeset for help on using the changeset viewer.