Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Aug 13, 2005, 10:02:40 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: optimizations

File:
1 edited

Legend:

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

    r4991 r4992  
    6262  void setRelCoor (const Vector& relCoord);
    6363  void setRelCoor (float x, float y, float z);
    64   void setRelCoorSoft(const Vector& relCoordSoft);
    65   void setRelCoorSoft(float x, float y, float z);
     64  void setRelCoorSoft(const Vector& relCoordSoft, float bias = 1.0);
     65  void setRelCoorSoft(float x, float y, float z, float bias = 1.0);
    6666  /** @returns the relative position */
    6767  inline const Vector& getRelCoor () const { return this->relCoordinate; };
     
    7474  void setRelDir (const Quaternion& relDir);
    7575  void setRelDir (float x, float y, float z);
    76   void setRelDirSoft(const Quaternion& relDirSoft);
    77   void setRelDirSoft(float x, float y, float z);
     76  void setRelDirSoft(const Quaternion& relDirSoft, float bias = 1.0);
     77  void setRelDirSoft(float x, float y, float z, float bias = 1.0);
    7878  /** @returns the relative Direction */
    7979  inline const Quaternion& getRelDir () const { return this->relDirection; };
     
    104104  PNode* getParent () const { return this->parent; };
    105105
    106   void softReparent(PNode* parentNode);
    107   void softReparent(const char* parentName);
     106  void softReparent(PNode* parentNode, float bias = 1.0);
     107  void softReparent(const char* parentName, float bias = 1.0);
    108108
    109109  void setParentMode (PARENT_MODE parentMode);
     
    144144  Vector*         toPosition;         //!< a position to which to iterate. (This is used in conjunction with softReparent.and set*CoorSoft)
    145145  Quaternion*     toDirection;        //!< a direction to which to iterate. (This is used in conjunction with softReparent and set*DirSoft)
     146  float           bias;               //!< how fast to iterate to the given position (default is 1)
    146147
    147148  PNode*          parent;             //!< a pointer to the parent node
Note: See TracChangeset for help on using the changeset viewer.