Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6569 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Jan 18, 2006, 3:22:44 PM (19 years ago)
Author:
rennerc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/coord/p_node.cc

    r6566 r6569  
    11931193    q.v.y = f3;
    11941194    q.v.z = f4;
    1195     this->setAbsDir( q );
     1195    this->setRelDir( q );
    11961196  }
    11971197
     
    12201220    flags |= __FLAG_COOR;
    12211221
    1222   if ( fabs( rotw - absDirection.w ) > __OFFSET_ROT ||
    1223        fabs( rotx - absDirection.v.x ) > __OFFSET_ROT ||
    1224        fabs( roty - absDirection.v.y ) > __OFFSET_ROT ||
    1225        fabs( rotz - absDirection.v.z ) > __OFFSET_ROT )
     1222  if ( fabs( rotw - relDirection.w ) > __OFFSET_ROT ||
     1223       fabs( rotx - relDirection.v.x ) > __OFFSET_ROT ||
     1224       fabs( roty - relDirection.v.y ) > __OFFSET_ROT ||
     1225       fabs( rotz - relDirection.v.z ) > __OFFSET_ROT )
    12261226    flags |= __FLAG_ROT;
    12271227
     
    12471247  {
    12481248
    1249     PRINTF(0)("SEND QUAT: %f %f %f %f\n", this->absDirection.w, this->absDirection.v.x, this->absDirection.v.y, this->absDirection.v.z);
    1250 
    1251     SYNCHELP_WRITE_FLOAT( this->absDirection.w );
    1252     SYNCHELP_WRITE_FLOAT( this->absDirection.v.x );
    1253     SYNCHELP_WRITE_FLOAT( this->absDirection.v.y );
    1254     SYNCHELP_WRITE_FLOAT( this->absDirection.v.z );
    1255 
    1256     rotw = absDirection.w;
    1257     rotx = absDirection.v.x;
    1258     roty = absDirection.v.y;
    1259     rotz = absDirection.v.z;
     1249    PRINTF(0)("SEND QUAT: %f %f %f %f\n", this->relDirection.w, this->relDirection.v.x, this->relDirection.v.y, this->relDirection.v.z);
     1250
     1251    SYNCHELP_WRITE_FLOAT( this->relDirection.w );
     1252    SYNCHELP_WRITE_FLOAT( this->relDirection.v.x );
     1253    SYNCHELP_WRITE_FLOAT( this->relDirection.v.y );
     1254    SYNCHELP_WRITE_FLOAT( this->relDirection.v.z );
     1255
     1256    rotw = relDirection.w;
     1257    rotx = relDirection.v.x;
     1258    roty = relDirection.v.y;
     1259    rotz = relDirection.v.z;
    12601260  }
    12611261
Note: See TracChangeset for help on using the changeset viewer.