Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6450 in orxonox.OLD for branches


Ignore:
Timestamp:
Jan 9, 2006, 2:14:00 PM (19 years ago)
Author:
bensch
Message:

cd: correctness

Location:
branches/collision_detection/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/collision_detection/src/lib/collision_detection/cd_engine.cc

    r5882 r6450  
    8383  WorldEntity* entity1 = iterator1->firstElement();
    8484  WorldEntity* entity2 = iterator2->iteratorElement(iterator1);
    85   PRINTF(3)("checking for collisions\n");
     85  PRINTF(5)("checking for collisions\n");
    8686  while( entity1 != NULL)
    8787  {
  • branches/collision_detection/src/lib/math/matrix.cc

    r5677 r6450  
    8383}
    8484
     85
     86
     87
    8588void Matrix::getEigenVectors(Vector& eigVc1, Vector& eigVc2, Vector& eigVc3) const
    8689{
     
    110113
    111114    eigVc3 = eigVc1.cross(eigVc2);
     115
     116    eigVc2 = eigVc3.cross(eigVc1);
    112117  }
    113118  else if (eigenValuesCount == 1)
     
    120125  eigVc2.normalize();
    121126  eigVc3.normalize();
     127
     128  if (!(eigVc1.cross(eigVc3) == eigVc2))
     129  {
     130    eigVc3.cross(eigVc1).debug();
     131    eigVc2.debug();
     132  }
     133  printf("ok\n");
    122134}
    123135
  • branches/collision_detection/src/subprojects/collision_detection/collision_detection.cc

    r5842 r6450  
    8383   if (argc > 1)
    8484   {
    85      printf("Loading model %s\n", argv[1]);
     85     //printf("Loading model %s\n", argv[1]);
    8686     b->loadModel(argv[1]);
    8787   }
     
    260260      entity->draw();
    261261    entity->drawBVTree(depth, drawMode);
    262     printf("%i, %i\n", depth, drawMode);
     262   // printf("%i, %i\n", depth, drawMode);
    263263    entity = iterator->nextElement();
    264264  }
Note: See TracChangeset for help on using the changeset viewer.