Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4718 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Jun 27, 2005, 2:02:37 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: the collision detection engine works again and is ready for the presentation

Location:
orxonox/trunk/src
Files:
3 edited

Legend:

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

    r4717 r4718  
    609609  /* if the obb overlap, make subtests: check which node is realy overlaping  */
    610610  PRINT(3)("Checking OBB %i vs %i: ", this->getIndex(), treeNode->getIndex());
    611   //if( unlikely())
     611  if( unlikely(treeNode == NULL)) return;
    612612  if( this->overlapTest(this->bvElement, ((OBBTreeNode*)treeNode)->bvElement, nodeA, nodeB))
    613613  {
  • orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc

    r4717 r4718  
    8383  //c = new Terrain();
    8484
    85   b->setRelCoor(0.0, 0.0, -10.0);
    86   //b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0)));
     85  b->setRelCoor(0.0, 0.0, -15.0);
     86  b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0)));
    8787
    8888  entityList->add(a);
     
    231231
    232232
    233   //b->shiftCoor(Vector(0.0, 0.0, iterata));
     233  b->shiftCoor(Vector(0.0, 0.0, iterata));
    234234
    235235
     
    238238  while( entity != NULL)
    239239  {
    240     entity->tick(dt);
     240    //entity->tick(dt);
    241241    entity = iterator->nextElement();
    242242  }
     
    247247void Framework::moduleDraw() const
    248248{
    249   CDEngine::getInstance()->debugDraw(depth, drawMode);
     249  //CDEngine::getInstance()->debugDraw(depth, drawMode);
    250250
    251251  tIterator<WorldEntity>* iterator = entityList->getIterator();
  • orxonox/trunk/src/world_entities/environment.cc

    r4714 r4718  
    3535  this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj"/*"worlds/vulcania.obj"*/, OBJ, RP_CAMPAIGN);
    3636
    37   this->obbTree = new OBBTree(10, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
     37  this->obbTree = new OBBTree(7, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
    3838}
    3939
Note: See TracChangeset for help on using the changeset viewer.