Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 7, 2005, 3:54:49 PM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: Merged trunk into branch… still not working though…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/lib/coord/p_node.h

    r3605 r3746  
    2323
    2424#include "base_object.h"
     25//#include "vector.h"
    2526
    2627// FORWARD DEFINITION \\
     
    2829class Quaternion;
    2930class Vector;
     31template<class T> class tList;
    3032
    3133//! enumeration for the different translation-binding-types
     
    5557
    5658
    57   Vector getRelCoor ();
     59  Vector* getRelCoor ();
    5860  void setRelCoor (Vector* relCoord);
    59   //void setRelCoor (Vector relCoord);
     61  void setRelCoor (Vector relCoord);
    6062  Vector getAbsCoor ();
    6163  void setAbsCoor (Vector* absCoord);
    62   //void setAbsCoor (Vector absCoord);
     64  void setAbsCoor (Vector absCoord);
    6365  void shiftCoor (Vector* shift);
     66  void shiftCoor (Vector shift);
    6467  //void shiftCoor (Vector shift);
    6568
    6669  Quaternion getRelDir ();
    6770  void setRelDir (Quaternion* relDir);
     71  void setRelDir (Quaternion relDir);
    6872  Quaternion getAbsDir ();
    6973  void setAbsDir (Quaternion* absDir);
     74  void setAbsDir (Quaternion absDir);
    7075  void shiftDir (Quaternion* shift);
     76  void shiftDir (Quaternion shift);
     77
     78  float getSpeed();
    7179
    7280  void addChild (PNode* pNode);
     
    8290  int getMode();
    8391
    84   virtual void update ();
     92  virtual void update (float dt);
    8593  void processTick (float dt);
    8694
     
    9098
    9199  void debug ();
    92 
    93  private:
    94   void init(PNode* parent);
    95100
    96101 protected:
     
    102107  bool bRelDirChanged;     //!< If Relative Direction has changed since last time we checked
    103108
    104   Vector relCoordinate;    //!< coordinates relative to the parent
    105   Vector absCoordinate;    //!< absolute coordinates in the world ( from (0,0,0) )
    106   Quaternion relDirection; //!< direction relative to the parent
    107   Quaternion absDirection; //!< absolute direvtion in the world ( from (0,0,1) )
     109  Vector* relCoordinate;    //!< coordinates relative to the parent
     110  Vector* absCoordinate;    //!< absolute coordinates in the world ( from (0,0,0) )
     111  Quaternion* relDirection; //!< direction relative to the parent
     112  Quaternion* absDirection; //!< absolute direvtion in the world ( from (0,0,1) )
    108113
    109114  int mode;                //!< the mode of the binding
    110115
     116 private:
     117  void init(PNode* parent);
     118
     119  Vector* lastAbsCoordinate; //!< this is used for speedcalculation, it stores the last coordinate
     120  float time;                //!< time since last update
    111121};
    112122
Note: See TracChangeset for help on using the changeset viewer.