Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6536 in orxonox.OLD for branches/network/src/lib


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

pnode

Location:
branches/network/src/lib/coord
Files:
2 edited

Legend:

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

    r6526 r6536  
    12051205  }
    12061206
    1207   static float coorx = relCoordinate.x + 1;
    1208   static float coory = relCoordinate.y + 1;
    1209   static float coorz = relCoordinate.z + 1;
    1210 
    1211   static float rotw = relDirection.w + 1;
    1212   static float rotx = relDirection.v.x + 1;
    1213   static float roty = relDirection.v.y + 1;
    1214   static float rotz = relDirection.v.z + 1;
    1215 
    12161207  byte flags = 0;
    12171208  if ( fabs( coorx - relCoordinate.x ) > __OFFSET ||
     
    12271218
    12281219  SYNCHELP_WRITE_BYTE( flags );
    1229   //PRINTF(0)("FLAGS = %d\n", flags);
    1230 
    1231   coorx = relCoordinate.x;
    1232   coory = relCoordinate.y;
    1233   coorz = relCoordinate.z;
    1234 
    1235 
    1236   rotw = relDirection.w;
    1237   rotx = relDirection.v.x;
    1238   roty = relDirection.v.y;
    1239   rotz = relDirection.v.z;
    1240 
     1220  PRINTF(0)("FLAGS = %d\n", flags);
    12411221
    12421222  if ( flags & __FLAG_COOR )
     
    12481228    SYNCHELP_WRITE_FLOAT( this->relCoordinate.y );
    12491229    SYNCHELP_WRITE_FLOAT( this->relCoordinate.z );
     1230
     1231    coorx = relCoordinate.x;
     1232    coory = relCoordinate.y;
     1233    coorz = relCoordinate.z;
    12501234  }
    12511235
     
    12591243    SYNCHELP_WRITE_FLOAT( this->relDirection.v.y );
    12601244    SYNCHELP_WRITE_FLOAT( this->relDirection.v.z );
     1245
     1246    rotw = relDirection.w;
     1247    rotx = relDirection.v.x;
     1248    roty = relDirection.v.y;
     1249    rotz = relDirection.v.z;
    12611250  }
    12621251
  • branches/network/src/lib/coord/p_node.h

    r6526 r6536  
    229229
    230230  static PNode*      nullParent;         //!< The ROOT of the main PNode Tree.
     231
     232  private:
     233    float coorx;
     234    float coory;
     235    float coorz;
     236
     237    float rotw;
     238    float rotx;
     239    float roty;
     240    float rotz;
    231241};
    232242
Note: See TracChangeset for help on using the changeset viewer.