Changeset 4194 in orxonox.OLD for orxonox/branches/openAL/src/util/animation/animation3d.h
- Timestamp:
- May 16, 2005, 1:33:19 PM (20 years ago)
- Location:
- orxonox/branches/openAL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/openAL
- Property svn:externals
-
old new 1 data http://svn.orxonox.ethz.ch/data 1
-
- Property svn:externals
-
orxonox/branches/openAL/src/util/animation/animation3d.h
r3868 r4194 9 9 class PNode; 10 10 11 #define DELTA_X_3D 0.05 //!< the percentag of the distance that doesnt have to be done by neg_exp (asymptotical) ~ maschinendelta 12 11 13 //! KeyFrame3D Struct 12 14 /** … … 16 18 float duration; //!< The duration of this KeyFrame 17 19 Vector position; //!< The position of this KeyFrame 20 Vector lastPosition; 18 21 Quaternion direction; //!< The direction of this KeyFrame 19 ANIM_FUNCTION animFunc; //!< with whitch function to iterate to the next KeyFrame3D 22 ANIM_FUNCTION animFuncMov; //!< with whitch function to iterate movement to the next KeyFrame3D 23 ANIM_FUNCTION animFuncRot; //!< with whitch function to iterate rotation to the next KeyFrame3D 20 24 }; 21 25 … … 32 36 virtual void rewind(void); 33 37 34 void addKeyFrame(Vector position, Quaternion direction, float time, ANIM_FUNCTION animFunc = ANIM_LINEAR);38 void addKeyFrame(Vector position, Quaternion direction, float time, ANIM_FUNCTION animFuncMov = ANIM_DEFAULT_FUNCTION, ANIM_FUNCTION animFuncRot = ANIM_NULL); 35 39 // void addKeyFrame(KeyFrame3D* frame); 36 40 37 41 virtual void tick(float dt); 38 42 39 43 private: 40 44 // animation functions 41 void setAnimFunc(ANIM_FUNCTION animFunc); 42 void constant(float timePassed) const; 43 void linear(float timePassed) const; 44 void sine(float timePassed) const; 45 void cosine(float timePassed) const; 46 void exp(float timePassed) const; 47 void negExp(float timePassed) const; 48 void quadratic(float timePassed) const; 49 void random(float timePassed) const; 45 void setAnimFuncMov(ANIM_FUNCTION animFunc); 46 void setAnimFuncRot(ANIM_FUNCTION animFunc); 47 void mConstant(float timePassed) const; 48 void mLinear(float timePassed) const; 49 void mSine(float timePassed) const; 50 void mCosine(float timePassed) const; 51 void mExp(float timePassed) const; 52 void mNegExp(float timePassed) const; 53 void mQuadratic(float timePassed) const; 54 void mRandom(float timePassed) const; 55 void rConstant(float timePassed) const; 56 void rLinear(float timePassed) const; 57 void rSine(float timePassed) const; 58 void rCosine(float timePassed) const; 59 void rExp(float timePassed) const; 60 void rNegExp(float timePassed) const; 61 void rQuadratic(float timePassed) const; 62 void rRandom(float timePassed) const; 50 63 // ANIM_FUNCTION animFunc; 51 void (Animation3D::*animFunc)(float) const; //!< A Function for the AnimationType 64 void (Animation3D::*animFuncMov)(float) const; //!< A Function for the AnimationType 65 void (Animation3D::*animFuncRot)(float) const; //!< A Function for the AnimationType 52 66 53 67 KeyFrame3D* currentKeyFrame; //!< The current KeyFrame … … 60 74 Vector tmpVect; //!< what for?? 61 75 float deltaT; //!< ?? 76 float expFactorMov; 77 float expFactorRot; 62 78 };
Note: See TracChangeset
for help on using the changeset viewer.