Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6542 in orxonox.OLD for branches/network


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

habe now two offsets

File:
1 edited

Legend:

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

    r6541 r6542  
    11471147#define __FLAG_ROT  2
    11481148
    1149 #define __OFFSET 0.1
     1149#define __OFFSET_POS 1
     1150#define __OFFSET_ROT 0.05
    11501151
    11511152/**
     
    12061207
    12071208  byte flags = 0;
    1208   if ( fabs( coorx - relCoordinate.x ) > __OFFSET ||
    1209        fabs( coory - relCoordinate.y ) > __OFFSET ||
    1210        fabs( coorz - relCoordinate.z ) > __OFFSET )
     1209  if ( fabs( coorx - relCoordinate.x ) > __OFFSET_POS ||
     1210       fabs( coory - relCoordinate.y ) > __OFFSET_POS ||
     1211       fabs( coorz - relCoordinate.z ) > __OFFSET_POS )
    12111212    flags |= __FLAG_COOR;
    12121213
    1213   if ( fabs( rotw - relDirection.w ) > __OFFSET ||
    1214        fabs( rotx - relDirection.v.x ) > __OFFSET ||
    1215        fabs( roty - relDirection.v.y ) > __OFFSET ||
    1216        fabs( rotz - relDirection.v.z ) > __OFFSET )
     1214  if ( fabs( rotw - relDirection.w ) > __OFFSET_ROT ||
     1215       fabs( rotx - relDirection.v.x ) > __OFFSET_ROT ||
     1216       fabs( roty - relDirection.v.y ) > __OFFSET_ROT ||
     1217       fabs( rotz - relDirection.v.z ) > __OFFSET_ROT )
    12171218    flags |= __FLAG_ROT;
    12181219
Note: See TracChangeset for help on using the changeset viewer.