Changeset 4992 in orxonox.OLD for orxonox/trunk/src/lib/coord/p_node.h
- Timestamp:
- Aug 13, 2005, 10:02:40 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.h
r4991 r4992 62 62 void setRelCoor (const Vector& relCoord); 63 63 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); 66 66 /** @returns the relative position */ 67 67 inline const Vector& getRelCoor () const { return this->relCoordinate; }; … … 74 74 void setRelDir (const Quaternion& relDir); 75 75 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); 78 78 /** @returns the relative Direction */ 79 79 inline const Quaternion& getRelDir () const { return this->relDirection; }; … … 104 104 PNode* getParent () const { return this->parent; }; 105 105 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); 108 108 109 109 void setParentMode (PARENT_MODE parentMode); … … 144 144 Vector* toPosition; //!< a position to which to iterate. (This is used in conjunction with softReparent.and set*CoorSoft) 145 145 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) 146 147 147 148 PNode* parent; //!< a pointer to the parent node
Note: See TracChangeset
for help on using the changeset viewer.