Changeset 4217 in orxonox.OLD for orxonox/branches/movie_player/src/lib/coord/p_node.h
- Timestamp:
- May 18, 2005, 11:27:40 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/movie_player/src/lib/coord/p_node.h
r3966 r4217 69 69 void shiftDir (const Quaternion& shift); 70 70 71 float getSpeed() const; 72 Vector getVelocity() const; 71 /** \returns the Speed of the Node */ 72 inline float getSpeed() const {return this->velocity.len()/1000;} //! \FIX THIS SHOULD NOT BE /1000 73 /** \returns the Velocity of the Node */ 74 inline const Vector& getVelocity() const {return this->velocity;} 73 75 74 76 void addChild (PNode* pNode, int parentingMode = DEFAULT_MODE); … … 110 112 void init(PNode* parent); 111 113 114 Vector velocity; //!< Saves the velocity. 112 115 Vector lastAbsCoordinate; //!< this is used for speedcalculation, it stores the last coordinate 113 Vector diffCoordinate; //!< this is stored here for performance reasons, difference to the last vector114 float time; //!< time since last update115 116 }; 116 117
Note: See TracChangeset
for help on using the changeset viewer.