Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 15, 2005, 8:59:02 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: changed the collision detection interface again slightly to make it more useable

File:
1 edited

Legend:

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

    r4836 r5028  
    2222#include "vector.h"
    2323#include "abstract_model.h"
    24 #include "p_node.h"
     24#include "world_entity.h"
    2525
    2626#include <math.h>
     
    620620
    621621
    622 void OBBTreeNode::collideWith(BVTreeNode* treeNode, PNode* nodeA, PNode* nodeB)
     622void OBBTreeNode::collideWith(BVTreeNode* treeNode, WorldEntity* nodeA, WorldEntity* nodeB)
    623623{
    624624  PRINTF(3)("collideWith\n");
     
    647647       this->nodeRight->collideWith(((OBBTreeNode*)treeNode)->nodeRight, nodeA, nodeB);
    648648      }
    649     }
    650   }
    651 }
    652 
    653 
    654 
    655 bool OBBTreeNode::overlapTest(OBB* boxA, OBB* boxB, PNode* nodeA, PNode* nodeB)
     649
     650      /* so there is a collision and this is the last box in the tree (i.e. leaf) */
     651      if( unlikely(this->nodeRight == NULL && this->nodeLeft == NULL))
     652      {
     653        //nodeA->collidesWith()
     654      }
     655    }
     656  }
     657}
     658
     659
     660
     661bool OBBTreeNode::overlapTest(OBB* boxA, OBB* boxB, WorldEntity* nodeA, WorldEntity* nodeB)
    656662{
    657663  /* first check all axis */
Note: See TracChangeset for help on using the changeset viewer.