Changeset 6542 in orxonox.OLD for branches/network
- Timestamp:
- Jan 18, 2006, 1:59:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/coord/p_node.cc
r6541 r6542 1147 1147 #define __FLAG_ROT 2 1148 1148 1149 #define __OFFSET 0.1 1149 #define __OFFSET_POS 1 1150 #define __OFFSET_ROT 0.05 1150 1151 1151 1152 /** … … 1206 1207 1207 1208 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 ) 1211 1212 flags |= __FLAG_COOR; 1212 1213 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 ) 1217 1218 flags |= __FLAG_ROT; 1218 1219
Note: See TracChangeset
for help on using the changeset viewer.