Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4675 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection


Ignore:
Timestamp:
Jun 23, 2005, 11:08:06 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: now used the player model to do an obb on it - works greatly and it realy makes sense! im so excited…

Location:
orxonox/trunk/src/lib/collision_detection
Files:
2 edited

Legend:

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

    r4635 r4675  
    5252
    5353
     54void CDEngine::checkCollisions()
     55{
     56
     57}
     58
     59
    5460
    5561void CDEngine::drawBV(int depth, int drawMode) const
  • orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc

    r4674 r4675  
    300300  for(int i = 0; i < length; i++)
    301301  {
    302     //PRINTF(0)("vertex %i: %f, %f, %f\n", i, verticesList[i][0], verticesList[i][1], verticesList[i][2]);
    303302    PRINTF(3)("vertex %i: %f, %f, %f\n", i, box->vertices[i][0], box->vertices[i][1], box->vertices[i][2]);
    304303  }
    305304
    306305
    307   PRINTF(0)("\nCovariance Matrix:\n");
     306  PRINTF(3)("\nCovariance Matrix:\n");
    308307  for(int j = 0; j < 3; ++j)
    309308  {
    310     PRINT(0)(" |");
     309    PRINT(3)(" |");
    311310    for(int k = 0; k < 3; ++k)
    312311    {
    313       PRINT(0)(" \b%f ", covariance[j][k]);
    314     }
    315     PRINT(0)(" |\n");
     312      PRINT(3)(" \b%f ", covariance[j][k]);
     313    }
     314    PRINT(3)(" |\n");
    316315  }
    317316
     
    369368  PRINTF(3)("-- Got Axis\n");
    370369
    371   PRINTF(0)("eigenvector: %f, %f, %f\n", box->axis[0].x, box->axis[0].y, box->axis[0].z);
    372   PRINTF(0)("eigenvector: %f, %f, %f\n", box->axis[1].x, box->axis[1].y, box->axis[1].z);
    373   PRINTF(0)("eigenvector: %f, %f, %f\n", box->axis[2].x, box->axis[2].y, box->axis[2].z);
     370  PRINTF(3)("eigenvector: %f, %f, %f\n", box->axis[0].x, box->axis[0].y, box->axis[0].z);
     371  PRINTF(3)("eigenvector: %f, %f, %f\n", box->axis[1].x, box->axis[1].y, box->axis[1].z);
     372  PRINTF(3)("eigenvector: %f, %f, %f\n", box->axis[2].x, box->axis[2].y, box->axis[2].z);
    374373}
    375374
     
    627626        //glVertex3f(this->bvElement->vertices[i][0], this->bvElement->vertices[i][1], this->bvElement->vertices[i][2]);
    628627        glTranslatef(this->bvElement->vertices[i][0], this->bvElement->vertices[i][1], this->bvElement->vertices[i][2]);
    629         gluSphere(this->sphereObj, 1, 10, 10);
     628        gluSphere(this->sphereObj, 0.2, 10, 10);
    630629        //PRINTF(0)("v(%f, %f, %f)\n", this->bvElement->vertices[i][0], this->bvElement->vertices[i][1], this->bvElement->vertices[i][2]);
    631630        glPopMatrix();
Note: See TracChangeset for help on using the changeset viewer.