Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7668 in orxonox.OLD for branches


Ignore:
Timestamp:
May 18, 2006, 1:50:46 AM (19 years ago)
Author:
patrick
Message:

cd: most bugs found. but there is still at least one left: the axis are corrected in a wrong way. some more testing necessary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cd/src/lib/collision_detection/obb_tree_node.cc

    r7667 r7668  
    239239  }
    240240  box.center = center;
    241   //FIXME setting center to 0,0,0
    242 //   box.center = Vector();
    243 
    244241
    245242  /* debug output section*/
     
    286283  /* calculate the axis */
    287284  covMat.getEigenVectors(axis[0], axis[1], axis[2] );
    288 //   box.axis[0] = axis[0];
    289 //   box.axis[1] = axis[1];
    290 //   box.axis[2] = axis[2];
    291 
    292   box.axis[0] = Vector(1,0,0);
    293   box.axis[1] = Vector(0,1,0);
    294   box.axis[2] = Vector(0,0,1);
     285  box.axis[0] = axis[0];
     286  box.axis[1] = axis[1];
     287  box.axis[2] = axis[2];
     288
     289//   box.axis[0] = Vector(1,0,0);
     290//   box.axis[1] = Vector(0,1,0);
     291//   box.axis[2] = Vector(0,0,1);
    295292
    296293  PRINTF(3)("Eigenvectors:\n");
     
    397394  for( int i = 0; i < 3; ++i)
    398395  {
    399     centerOffset[i] = (fabs(maxLength[i]) - fabs(minLength[i])) / 2.0f;       // min length is negatie
     396//     centerOffset[i] = (fabs(maxLength[i]) - fabs(minLength[i])) / 2.0f;       // min length is negatie
     397    centerOffset[i] = (maxLength[i] + minLength[i]) / 2.0f;       // min length is negatie
    400398    box.halfLength[i] = (maxLength[i] - minLength[i]) / 2.0f;                 // min length is negative
    401399  }
Note: See TracChangeset for help on using the changeset viewer.