Changeset 3746 in orxonox.OLD for orxonox/branches/levelloader/src/lib/coord/p_node.h
- Timestamp:
- Apr 7, 2005, 3:54:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/lib/coord/p_node.h
r3605 r3746 23 23 24 24 #include "base_object.h" 25 //#include "vector.h" 25 26 26 27 // FORWARD DEFINITION \\ … … 28 29 class Quaternion; 29 30 class Vector; 31 template<class T> class tList; 30 32 31 33 //! enumeration for the different translation-binding-types … … 55 57 56 58 57 Vector getRelCoor ();59 Vector* getRelCoor (); 58 60 void setRelCoor (Vector* relCoord); 59 //void setRelCoor (Vector relCoord);61 void setRelCoor (Vector relCoord); 60 62 Vector getAbsCoor (); 61 63 void setAbsCoor (Vector* absCoord); 62 //void setAbsCoor (Vector absCoord);64 void setAbsCoor (Vector absCoord); 63 65 void shiftCoor (Vector* shift); 66 void shiftCoor (Vector shift); 64 67 //void shiftCoor (Vector shift); 65 68 66 69 Quaternion getRelDir (); 67 70 void setRelDir (Quaternion* relDir); 71 void setRelDir (Quaternion relDir); 68 72 Quaternion getAbsDir (); 69 73 void setAbsDir (Quaternion* absDir); 74 void setAbsDir (Quaternion absDir); 70 75 void shiftDir (Quaternion* shift); 76 void shiftDir (Quaternion shift); 77 78 float getSpeed(); 71 79 72 80 void addChild (PNode* pNode); … … 82 90 int getMode(); 83 91 84 virtual void update ( );92 virtual void update (float dt); 85 93 void processTick (float dt); 86 94 … … 90 98 91 99 void debug (); 92 93 private:94 void init(PNode* parent);95 100 96 101 protected: … … 102 107 bool bRelDirChanged; //!< If Relative Direction has changed since last time we checked 103 108 104 Vector relCoordinate; //!< coordinates relative to the parent105 Vector absCoordinate; //!< absolute coordinates in the world ( from (0,0,0) )106 Quaternion relDirection; //!< direction relative to the parent107 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) ) 108 113 109 114 int mode; //!< the mode of the binding 110 115 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 111 121 }; 112 122
Note: See TracChangeset
for help on using the changeset viewer.