Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3644 in orxonox.OLD for orxonox/trunk/src/lib/coord/p_node.h


Ignore:
Timestamp:
Mar 23, 2005, 2:32:06 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: pnode speed function implemented

File:
1 edited

Legend:

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

    r3608 r3644  
    7272  void shiftDir (Quaternion* shift);
    7373
     74  float getSpeed();
     75
    7476  void addChild (PNode* pNode);
    7577  void addChild (PNode* pNode, int parentingMode);
     
    8486  int getMode();
    8587
    86   virtual void update ();
     88  virtual void update (float dt);
    8789  void processTick (float dt);
    8890
     
    9294
    9395  void debug ();
    94 
    95  private:
    96   void init(PNode* parent);
    9796
    9897 protected:
     
    111110  int mode;                //!< the mode of the binding
    112111
     112 private:
     113  void init(PNode* parent);
     114
     115  Vector* lastAbsCoordinate; //!< this is used for speedcalculation, it stores the last coordinate
     116  float time;                //!< time since last update
    113117};
    114118
Note: See TracChangeset for help on using the changeset viewer.