Changeset 7537 in orxonox.OLD for branches/cd/src/lib
- Timestamp:
- May 4, 2006, 4:35:25 PM (19 years ago)
- Location:
- branches/cd/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cd/src/lib/collision_detection/obb_tree_node.cc
r7365 r7537 13 13 */ 14 14 15 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COLLISION_DETECTION15 #define DEBUG_SPECIAL_MODULE 3/* DEBUG_MODULE_COLLISION_DETECTION*/ 16 16 17 17 #include "obb_tree_node.h" … … 390 390 { 391 391 centerOffset[i] = (maxLength[i] + minLength[i]) / 2.0f; // min length is negatie 392 box.halfLength[i] = (maxLength[i] 392 box.halfLength[i] = (maxLength[i]- minLength[i]) / 2.0f; // min length is negative 393 393 } 394 394 box.center.x += centerOffset[0]; … … 397 397 398 398 PRINTF(3)("\n"); 399 PRINT(3)("\tAxis Length x: %f (max: %11.2f, \tmin: %11.2f)\n",halfLength[0], maxLength[0], minLength[0]);400 PRINT(3)("\tAxis Length x: %f (max: %11.2f, \tmin: %11.2f)\n",halfLength[1], maxLength[1], minLength[1]);401 PRINT(3)("\tAxis Length x: %f (max: %11.2f, \tmin: %11.2f)\n",halfLength[2], maxLength[2], minLength[2]);399 PRINT(3)("\tAxis halflength x: %11.2f (max: %11.2f, \tmin: %11.2f)\n", box.halfLength[0], maxLength[0], minLength[0]); 400 PRINT(3)("\tAxis halflength x: %11.2f (max: %11.2f, \tmin: %11.2f)\n", box.halfLength[1], maxLength[1], minLength[1]); 401 PRINT(3)("\tAxis halflength x: %11.2f (max: %11.2f, \tmin: %11.2f)\n", box.halfLength[2], maxLength[2], minLength[2]); 402 402 403 403 … … 809 809 if( this->obbTree->getOwner() != NULL) 810 810 { 811 PRINTF( 0)("debug poly draw: depth: %i, mode: %i, entity-name: %s, class: %s\n", depth, drawMode, this->obbTree->getOwner()->getName(), this->obbTree->getOwner()->getClassName());811 PRINTF(4)("debug poly draw: depth: %i, mode: %i, entity-name: %s, class: %s\n", depth, drawMode, this->obbTree->getOwner()->getName(), this->obbTree->getOwner()->getClassName()); 812 812 } 813 813 else 814 PRINTF( 0)("debug poly draw: depth: %i, mode: %i\n", depth, drawMode);814 PRINTF(4)("debug poly draw: depth: %i, mode: %i\n", depth, drawMode); 815 815 816 816 -
branches/cd/src/lib/util/executor/functor_list.h
r7331 r7537 140 140 141 141 FUNCTOR_LIST(3)(l_STRING, l_FLOAT, l_UINT); 142 142 FUNCTOR_LIST(4)(l_STRING, l_FLOAT, l_UINT, l_UINT); 143 143 144 144 #endif /* FUNCTOR_LIST */
Note: See TracChangeset
for help on using the changeset viewer.