Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3726 in orxonox.OLD for orxonox/trunk/src/simple_animation.h


Ignore:
Timestamp:
Apr 5, 2005, 6:34:33 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: reimplemented, rescaled KeyFrame.

File:
1 edited

Legend:

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

    r3720 r3726  
    1212
    1313#include "base_object.h"
    14 #include "p_node.h"
    1514#include "list.h"
    1615
    1716
     17class Vector;
     18class Quaternion;
     19class WorldEntity;
     20class PNode;
     21
    1822typedef enum movementMode{LINEAR=0, EXP, NEG_EXP, SIN, COS, QUADRATIC};
     23#define DEFAULT_ANIMATION_MODE LINEAR
    1924
    20 
    21 //! KeyFrame Class
     25//! KeyFrame Struct
    2226/**
    2327   This represents one point with orientation of the animation
    2428*/
    25 class KeyFrame : public PNode {
    26  public:
    27   KeyFrame(Vector* point, Quaternion* orientation, float time);
    28   KeyFrame(Vector* point, Quaternion* orientation, float time, movementMode mode);
    29   virtual ~KeyFrame();
    30 
    31   void set(Vector* point, Quaternion* orientation, float time);
    32   void set(Vector* point, Quaternion* orientation, float time, movementMode mode);
    33  
     29typedef struct KeyFrame {
     30  Vector* position;
     31  Quaternion* orientation;
     32  WorldEntity* object;
    3433  float time;
    3534  movementMode mode;
     
    6968  PNode* parent;
    7069 
    71   Vector* tmpVect;                 //<! this is the temporary vector save place
     70  Vector* tmpVect;                 //<! this is the temporary vector save place -
    7271
    7372};
Note: See TracChangeset for help on using the changeset viewer.