Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5109 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Aug 23, 2005, 9:54:48 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: synchronized PNode and Element2D again

Location:
trunk/src/lib
Files:
2 edited

Legend:

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

    r5050 r5109  
    6666  /** @returns the relative position */
    6767  inline const Vector& getRelCoor () const { return this->prevRelCoordinate; };
     68  /** @returns the Relative Coordinate Destination */
     69  inline const Vector& getRelCoorSoft2D() const { return (this->toCoordinate)?*this->toCoordinate:this->relCoordinate; };
    6870  void setAbsCoor (const Vector& absCoord);
    6971  void setAbsCoor (float x, float y, float z);
     
    7880  /** @returns the relative Direction */
    7981  inline const Quaternion& getRelDir () const { return this->prevRelDirection; };
     82  /** @returns the Relative Directional Destination */
     83  inline const Quaternion& getRelDirSoft2D() const { return (this->toDirection)?*this->toDirection:this->relDirection; };
    8084  /** @returns a Vector pointing into the relative Direction */
    8185  inline Vector getRelDirV() const { return this->prevRelDirection.apply(Vector(0,1,0)); };
  • trunk/src/lib/graphics/render2D/element_2d.h

    r5108 r5109  
    125125    /** @returns the relative Direction */
    126126    inline float getRelDir2D () const { return this->prevRelDirection; };
     127    /** @returns the Relative Directional Destination */
     128    inline float getRelDirSoft2D() const { return (this->toDirection)?*this->toDirection:this->relDirection; };
    127129    void setAbsDir2D (float absDir);
    128130    /** @returns the absolute Direction */
Note: See TracChangeset for help on using the changeset viewer.