Changeset 8845 in orxonox.OLD for branches/multi_player_map/src
- Timestamp:
- Jun 28, 2006, 12:22:38 PM (18 years ago)
- 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 455 455 return; 456 456 457 458 457 float distanceMax = this->bvElement->radius + ((OBBTreeNode*)treeNode)->bvElement->radius; 459 460 458 float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len()); 461 459 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); 465 462 466 463 PRINTF(4)("collideWith\n"); -
branches/multi_player_map/src/story_entities/multi_player_world.cc
r8841 r8845 118 118 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00), 119 119 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)); 120 122 121 123 PRINTF(5)("\n-----------------------------------------\nchecking OM_GROUP_01 vs OM_GROUP_00_PROJ\n\n"); … … 123 125 this->dataTank->objectManager->getObjectList(OM_GROUP_00_PROJ)); 124 126 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)); 127 130 } 128 131 -
branches/multi_player_map/src/world_entities/world_entity.cc
r8841 r8845 412 412 bool WorldEntity::registerCollision(WorldEntity* entityA, WorldEntity* entityB, BoundingVolume* bvA, BoundingVolume* bvB) 413 413 { 414 PRINTF(0)("registering collision\n\n\n\n");415 414 // is there any handler listening? 416 415 if( !this->bReactive)
Note: See TracChangeset
for help on using the changeset viewer.