Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 15, 2005, 8:22:30 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed a reparenting bug
made the naming more compliant

File:
1 edited

Legend:

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

    r5356 r5382  
    9696
    9797
    98   void addChild (PNode* child, int parentingMode = PNODE_PARENT_MODE_DEFAULT);
     98  void addChild (PNode* child);
    9999  void addChild (const char* childName);
    100100  void removeChild (PNode* child);
     
    106106  PNode* getParent () const { return this->parent; };
    107107
    108   void softReparent(PNode* parentNode, float bias = 1.0);
    109   void softReparent(const char* parentName, float bias = 1.0);
     108  void setParentSoft(PNode* parentNode, float bias = 1.0);
     109  void setParentSoft(const char* parentName, float bias = 1.0);
    110110
    111111  /** @param parentMode sets the parentingMode of this Node */
     
    118118
    119119  void debug (unsigned int depth = 1, unsigned int level = 0) const;
    120   void debugDraw(unsigned int depth = 1, float size = 1.0, Vector color = Vector(1,1,1)) const;
     120  void debugDraw(unsigned int depth = 1, float size = 1.0, const Vector& color = Vector(1,1,1)) const;
    121121
    122122
     
    150150  Vector          velocity;           //!< Saves the velocity.
    151151
    152   Vector*         toCoordinate;       //!< a position to which to iterate. (This is used in conjunction with softReparent.and set*CoorSoft)
    153   Quaternion*     toDirection;        //!< a direction to which to iterate. (This is used in conjunction with softReparent and set*DirSoft)
     152  Vector*         toCoordinate;       //!< a position to which to iterate. (This is used in conjunction with setParentSoft.and set*CoorSoft)
     153  Quaternion*     toDirection;        //!< a direction to which to iterate. (This is used in conjunction with setParentSoft and set*DirSoft)
    154154  float           bias;               //!< how fast to iterate to the given position (default is 1)
    155155
Note: See TracChangeset for help on using the changeset viewer.