Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6593 in orxonox.OLD for branches/network/src/lib/coord/p_node.cc


Ignore:
Timestamp:
Jan 18, 2006, 4:48:41 PM (19 years ago)
Author:
rennerc
Message:

using rel direction again

File:
1 edited

Legend:

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

    r6583 r6593  
    12001200    q.v.y = f3;
    12011201    q.v.z = f4;
    1202     this->setAbsDir( q );
     1202    this->setRelDir( q );
    12031203  }
    12041204
     
    12271227    flags |= __FLAG_COOR;
    12281228
    1229   if ( fabs( rotw - absDirection.w ) > __OFFSET_ROT ||
    1230        fabs( rotx - absDirection.v.x ) > __OFFSET_ROT ||
    1231        fabs( roty - absDirection.v.y ) > __OFFSET_ROT ||
    1232        fabs( rotz - absDirection.v.z ) > __OFFSET_ROT )
     1229  if ( fabs( rotw - relDirection.w ) > __OFFSET_ROT ||
     1230       fabs( rotx - relDirection.v.x ) > __OFFSET_ROT ||
     1231       fabs( roty - relDirection.v.y ) > __OFFSET_ROT ||
     1232       fabs( rotz - relDirection.v.z ) > __OFFSET_ROT )
    12331233    flags |= __FLAG_ROT;
    12341234
     
    12541254  {
    12551255
    1256     PRINTF(0)("SEND QUAT: %f %f %f %f\n", this->absDirection.w, this->absDirection.v.x, this->absDirection.v.y, this->absDirection.v.z);
    1257 
    1258     SYNCHELP_WRITE_FLOAT( this->absDirection.w );
    1259     SYNCHELP_WRITE_FLOAT( this->absDirection.v.x );
    1260     SYNCHELP_WRITE_FLOAT( this->absDirection.v.y );
    1261     SYNCHELP_WRITE_FLOAT( this->absDirection.v.z );
    1262 
    1263     rotw = absDirection.w;
    1264     rotx = absDirection.v.x;
    1265     roty = absDirection.v.y;
    1266     rotz = absDirection.v.z;
     1256    PRINTF(0)("SEND QUAT: %f %f %f %f\n", this->relDirection.w, this->relDirection.v.x, this->relDirection.v.y, this->relDirection.v.z);
     1257
     1258    SYNCHELP_WRITE_FLOAT( this->relDirection.w );
     1259    SYNCHELP_WRITE_FLOAT( this->relDirection.v.x );
     1260    SYNCHELP_WRITE_FLOAT( this->relDirection.v.y );
     1261    SYNCHELP_WRITE_FLOAT( this->relDirection.v.z );
     1262
     1263    rotw = relDirection.w;
     1264    rotx = relDirection.v.x;
     1265    roty = relDirection.v.y;
     1266    rotz = relDirection.v.z;
    12671267  }
    12681268
Note: See TracChangeset for help on using the changeset viewer.