Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3686 in orxonox.OLD for orxonox/trunk/src/lib/coord/p_node.cc


Ignore:
Timestamp:
Mar 31, 2005, 12:28:28 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: fixed speed issue, was a problem with the current track defined in the debug level

File:
1 edited

Legend:

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

    r3683 r3686  
    422422{
    423423  if(this->time == 0)
    424     return 0;
    425   Vector* diff = new Vector();
    426   *diff = *this->absCoordinate - *this->lastAbsCoordinate;
    427   float x = diff->len();
     424    return 1000;
     425  Vector diff;
     426  diff = *this->absCoordinate - *this->lastAbsCoordinate;
     427  float x = diff.len();
    428428  return x / this->time;
    429429}
Note: See TracChangeset for help on using the changeset viewer.