Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2006, 3:05:27 PM (17 years ago)
Author:
patrick
Message:

moved some of the importer sources, probably will need to rebuild the project

File:
1 edited

Legend:

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

    r10013 r10033  
    2020
    2121#include "collision_tube.h"
     22#include "world_entity.h"
    2223
    2324#include "matrix.h"
     
    479480    return;
    480481
    481 #warning this should be done
    482 //   if( !CoRe::CollisionTube::getInstance()->isReactive( *nodeA, *nodeB) )
     482  PRINTF(4)("collideWith\n");
     483  PRINTF(5)("Checking OBB %i vs %i: ", this->getIndex(), treeNode->getIndex());
     484
     485  // check if these world entities have registered for a collision reaction between each other
     486//   if( !nodeA->isReactive( *nodeB) && !nodeB->isReactive( *nodeA) )
    483487//     return;
    484488
     489  // now use bounding spheres as a first collision estimation
    485490//   float distanceMax = this->bvElement->radius + ((OBBTreeNode*)treeNode)->bvElement->radius;
    486491//   float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len());
    487 
    488 
    489 //   if( distance < distanceMax)
    490 //     PRINTF(0)(" %s (%s: group %i) vs %s (%s: group %i): distanceMax: %f, distance: %f\n", nodeA->getClassCName(), nodeA->getName(), nodeA->getOMListNumber(), nodeB->getClassCName(),  nodeB->getName(), nodeB->getOMListNumber(), distanceMax, distance);
    491 
    492 
    493   PRINTF(4)("collideWith\n");
    494   PRINTF(5)("Checking OBB %i vs %i: ", this->getIndex(), treeNode->getIndex());
     492//   if( distance > distanceMax)
     493//     return;
    495494
    496495  // for now only collide with OBBTreeNodes
Note: See TracChangeset for help on using the changeset viewer.