Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3855 in orxonox.OLD for orxonox/trunk/src/animation3d.h


Ignore:
Timestamp:
Apr 17, 2005, 2:46:27 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: animation of weapon reimplemented (but only with Linear interpolation.
doxy-tags

File:
1 edited

Legend:

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

    r3852 r3855  
    1313*/
    1414typedef struct KeyFrame3D {
    15   float duration;
    16   Vector position;
    17   Quaternion direction;
    18   ANIM_FUNCTION animFunc;
     15  float duration;                   //!< The duration of this KeyFrame
     16  Vector position;                  //!< The position of this KeyFrame
     17  Quaternion direction;             //!< The direction of this KeyFrame
     18  ANIM_FUNCTION animFunc;           //!< with whitch function to iterate to the next KeyFrame3D
    1919};
    2020
     
    3232
    3333  void addKeyFrame(Vector position, Quaternion direction, float time, ANIM_FUNCTION animFunc = ANIM_LINEAR);
    34   void addKeyFrame(KeyFrame3D* frame);
     34  //  void addKeyFrame(KeyFrame3D* frame);
    3535
    3636  virtual void tick(float dt);
     
    4949  void random(float timePassed) const;
    5050  //  ANIM_FUNCTION animFunc;
    51   KeyFrame3D* currentKeyFrame;
    52   KeyFrame3D* nextKeyFrame;
    53   tList<KeyFrame3D>* keyFrameList;
    54   void (Animation3D::*animFunc)(float) const;
     51  void (Animation3D::*animFunc)(float) const;      //!< A Function for the AnimationType
     52
     53  KeyFrame3D* currentKeyFrame;                     //!< The current KeyFrame
     54  KeyFrame3D* nextKeyFrame;                        //!< The KeyFrame we iterate to
     55  tList<KeyFrame3D>* keyFrameList;                 //!< The KeyFrameList
    5556
    5657  // more class-local description
    57   PNode* object;
    58   Vector lastPosition;
    59   Vector tmpVect;
    60   float deltaT;
     58  PNode* object;                                   //!< The Object from which to Animate something
     59  Vector lastPosition;   //!< ??
     60  Vector tmpVect;        //!< what for??
     61  float deltaT;          //!< ??
    6162};
Note: See TracChangeset for help on using the changeset viewer.