Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5042 in orxonox.OLD


Ignore:
Timestamp:
Aug 16, 2005, 8:28:04 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: cd debuging tour, the trip forced me to think about the cd feedback triggering - still working

Location:
orxonox/trunk/src
Files:
5 edited

Legend:

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

    r5038 r5042  
    2929#include "quadtree.h"
    3030#include "quadtree_node.h"
     31
    3132
    3233
  • orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc

    r5038 r5042  
    626626  PRINT(3)("Checking OBB %i vs %i: ", this->getIndex(), treeNode->getIndex());
    627627  if( unlikely(treeNode == NULL)) return;
     628
    628629  if( this->overlapTest(this->bvElement, ((OBBTreeNode*)treeNode)->bvElement, nodeA, nodeB))
    629630  {
    630     //PRINTF(0)("collision @ lvl %i, object %s vs %s\n", this->depth, nodeA->getClassName(), nodeB->getClassName());
     631    PRINTF(3)("collision @ lvl %i, object %s vs. %s\n", this->depth, nodeA->getClassName(), nodeB->getClassName());
    631632
    632633    /* check if left node overlaps */
     
    653654      if( unlikely(this->nodeRight == NULL && this->nodeLeft == NULL))
    654655      {
     656        PRINT(0)("COLLISOIN\n");
    655657        nodeA->collidesWith(nodeB);
    656658        nodeB->collidesWith(nodeA);
  • orxonox/trunk/src/world_entities/environment.cc

    r5033 r5042  
    3636
    3737  if(this->obbTree == NULL)
    38     this->obbTree = new OBBTree(5, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
     38    this->obbTree = new OBBTree(4, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
    3939}
    4040
  • orxonox/trunk/src/world_entities/npc.cc

    r5034 r5042  
    3434  this->loadModel("models/ships/bolido.obj");
    3535  if(this->obbTree == NULL)
    36     this->obbTree = new OBBTree(5, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
     36    this->obbTree = new OBBTree(4, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
    3737}
    3838
  • orxonox/trunk/src/world_entities/world_entity.cc

    r5033 r5042  
    7474    this->model = (Model*)ResourceManager::getInstance()->load(fileName, OBJ, RP_CAMPAIGN);
    7575    PRINTF(4)("creating obb tree\n");
    76     this->obbTree = new OBBTree(5, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
     76    this->obbTree = new OBBTree(4, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
    7777  }
    7878  else
Note: See TracChangeset for help on using the changeset viewer.