Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8845 in orxonox.OLD for branches/multi_player_map/src


Ignore:
Timestamp:
Jun 28, 2006, 12:22:38 PM (18 years ago)
Author:
patrick
Message:

more collision checks

Location:
branches/multi_player_map/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/multi_player_map/src/lib/collision_detection/obb_tree_node.cc

    r8843 r8845  
    455455    return;
    456456
    457 
    458457  float distanceMax = this->bvElement->radius + ((OBBTreeNode*)treeNode)->bvElement->radius;
    459 
    460458  float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len());
    461459
    462   PRINTF(5)(" %s vs %s: distanceMax: %f, distance: %f\n", nodeA->getClassName(), nodeB->getClassName(), distanceMax, distance);
    463 
    464 
     460  if( distance < distanceMax)
     461    PRINTF(0)(" %s (%s: group %i) vs %s (%s: group %i): distanceMax: %f, distance: %f\n", nodeA->getClassName(), nodeA->getName(), nodeA->getOMListNumber(), nodeB->getClassName(),  nodeB->getName(), nodeB->getOMListNumber(), distanceMax, distance);
    465462
    466463  PRINTF(4)("collideWith\n");
  • branches/multi_player_map/src/story_entities/multi_player_world.cc

    r8841 r8845  
    118118  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00),
    119119    this->dataTank->objectManager->getObjectList(OM_GROUP_01));
     120  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00),
     121    this->dataTank->objectManager->getObjectList(OM_PLAYERS_PROJ));
    120122
    121123  PRINTF(5)("\n-----------------------------------------\nchecking OM_GROUP_01 vs OM_GROUP_00_PROJ\n\n");
     
    123125    this->dataTank->objectManager->getObjectList(OM_GROUP_00_PROJ));
    124126  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_01),
    125   this->dataTank->objectManager->getObjectList(OM_GROUP_00));
    126 
     127    this->dataTank->objectManager->getObjectList(OM_GROUP_00));
     128  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_01),
     129    this->dataTank->objectManager->getObjectList(OM_PLAYERS_PROJ));
    127130}
    128131
  • branches/multi_player_map/src/world_entities/world_entity.cc

    r8841 r8845  
    412412bool WorldEntity::registerCollision(WorldEntity* entityA, WorldEntity* entityB, BoundingVolume* bvA, BoundingVolume* bvB)
    413413{
    414   PRINTF(0)("registering collision\n\n\n\n");
    415414  // is there any handler listening?
    416415  if( !this->bReactive)
Note: See TracChangeset for help on using the changeset viewer.