Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4633 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
Jun 14, 2005, 6:56:35 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: me be tha bug-killa :) tree spawning seems to work perfectly :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc

    r4632 r4633  
    185185  }
    186186  PRINTF(0)("-- Calculated Covariance\n");
    187   return;
     187
    188188
    189189//   printf("\nVertex Data:\n");
     
    203203//     printf(" |\n");
    204204//   }
    205 //   printf("center: %f, %f, %f\n\n", center.x, center.y, center.z);
    206 
    207 
    208   for(int i = 0; i < 3; ++i)
    209   {
    210 
    211     box->covarianceMatrix[i][0] = covariance[i][0];
    212     box->covarianceMatrix[i][1] = covariance[i][1];
    213     box->covarianceMatrix[i][3] = covariance[i][2];
    214   }
     205  PRINTF(0)("center: %f, %f, %f\n", center.x, center.y, center.z);
     206
     207
     208//   for(int i = 0; i < 3; ++i)
     209//   {
     210//     box->covarianceMatrix[i][0] = covariance[i][0];
     211//     box->covarianceMatrix[i][1] = covariance[i][1];
     212//     box->covarianceMatrix[i][3] = covariance[i][2];
     213//   }
    215214  *box->center = center;
    216215  PRINTF(0)("-- Written Result to obb\n");
     
    562561
    563562
    564   if( depth != 0)
     563  if( true)//depth != 0)
    565564  {
    566565    /* now draw the separation plane */
     
    575574    glVertex3f(c.x - a1.x * l1 - a2.x * l2, c.y - a1.y * l1- a2.y * l2, c.z - a1.z * l1 - a2.z * l2);
    576575    glVertex3f(c.x + a1.x * l1 - a2.x * l2, c.y + a1.y * l1- a2.y * l2, c.z + a1.z * l1 - a2.z * l2);
    577 
    578576    glEnd();
    579577  }
Note: See TracChangeset for help on using the changeset viewer.