Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 31, 2006, 4:25:22 PM (19 years ago)
Author:
rennerc
Message:
 
File:
1 edited

Legend:

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

    r6892 r6900  
    12591259
    12601260  byte flags = 0;
    1261   if ( fabs( coorx - relCoordinate.x ) > __OFFSET_POS ||
    1262        fabs( coory - relCoordinate.y ) > __OFFSET_POS ||
    1263        fabs( coorz - relCoordinate.z ) > __OFFSET_POS )
     1261  if ( fabs( coorx - relCoordinate.x ) > __OFFSET_POS*0.05*this->velocity.len() ||
     1262       fabs( coory - relCoordinate.y ) > __OFFSET_POS*0.05*this->velocity.len() ||
     1263       fabs( coorz - relCoordinate.z ) > __OFFSET_POS*0.05*this->velocity.len() )
    12641264    flags |= __FLAG_COOR;
    12651265
     
    13091309bool PNode::needsReadSync( )
    13101310{
    1311   if ( fabs( coorx - relCoordinate.x ) > __OFFSET_POS ||
    1312        fabs( coory - relCoordinate.y ) > __OFFSET_POS ||
    1313        fabs( coorz - relCoordinate.z ) > __OFFSET_POS )
     1311  if ( fabs( coorx - relCoordinate.x ) > __OFFSET_POS*0.05*this->velocity.len() ||
     1312       fabs( coory - relCoordinate.y ) > __OFFSET_POS*0.05*this->velocity.len() ||
     1313       fabs( coorz - relCoordinate.z ) > __OFFSET_POS*0.05*this->velocity.len() )
    13141314    return true;
    13151315
Note: See TracChangeset for help on using the changeset viewer.