Changeset 3978 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Apr 26, 2005, 2:13:40 AM (20 years ago)
- Location:
- orxonox/trunk/src/util/animation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/animation/animation.h
r3876 r3978 25 25 ANIM_NEG_EXP: fast, slow 26 26 ANIM_RANDOM: eratic 27 27 28 ANIM_NULL: !!DO NOT USE THIS!! only for internal handling 29 28 30 deprecated QUADRATIC 29 31 */ … … 35 37 ANIM_NEG_EXP, 36 38 ANIM_QUADRATIC, 37 ANIM_RANDOM}; 39 ANIM_RANDOM, 40 ANIM_NULL}; 38 41 39 42 //! An enumerator describing what the animation should do after the last keyframe. -
orxonox/trunk/src/util/animation/animation3d.cc
r3977 r3978 82 82 \param direction The direction of the new Keyframe. 83 83 \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 85 86 */ 86 87 void Animation3D::addKeyFrame(Vector position, Quaternion direction, float duration, ANIM_FUNCTION animFuncMov, ANIM_FUNCTION animFuncRot) … … 89 90 if (duration <= 0.0) 90 91 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; 91 95 92 96 KeyFrame3D* tmpKeyFrame; -
orxonox/trunk/src/util/animation/animation3d.h
r3977 r3978 35 35 virtual void rewind(void); 36 36 37 void addKeyFrame(Vector position, Quaternion direction, float time, ANIM_FUNCTION animFuncMov = ANIM_LINEAR, ANIM_FUNCTION animFuncRot = ANIM_ LINEAR);37 void addKeyFrame(Vector position, Quaternion direction, float time, ANIM_FUNCTION animFuncMov = ANIM_LINEAR, ANIM_FUNCTION animFuncRot = ANIM_NULL); 38 38 // void addKeyFrame(KeyFrame3D* frame); 39 39
Note: See TracChangeset
for help on using the changeset viewer.