Changeset 7668 in orxonox.OLD for branches/cd/src/lib/collision_detection/obb_tree_node.cc
- Timestamp:
- May 18, 2006, 1:50:46 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cd/src/lib/collision_detection/obb_tree_node.cc
r7667 r7668 239 239 } 240 240 box.center = center; 241 //FIXME setting center to 0,0,0242 // box.center = Vector();243 244 241 245 242 /* debug output section*/ … … 286 283 /* calculate the axis */ 287 284 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); 295 292 296 293 PRINTF(3)("Eigenvectors:\n"); … … 397 394 for( int i = 0; i < 3; ++i) 398 395 { 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 400 398 box.halfLength[i] = (maxLength[i] - minLength[i]) / 2.0f; // min length is negative 401 399 }
Note: See TracChangeset
for help on using the changeset viewer.