Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8842 in orxonox.OLD


Ignore:
Timestamp:
Jun 28, 2006, 11:11:55 AM (18 years ago)
Author:
patrick
Message:

mulitplayer distances

Location:
branches/multi_player_map/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/multi_player_map/src/lib/collision_detection/bounding_volume.h

    r7711 r8842  
    3838    const int*          triangleIndexes;            //!< Array with the triangle indexes in modelInfo
    3939    int                 triangleIndexesLength;      //!< length of the indexes array
     40
     41    float               radius;                     //!< the radius of the box (longest axis)
    4042};
    4143
  • branches/multi_player_map/src/lib/collision_detection/obb_tree_node.cc

    r8838 r8842  
    364364    }
    365365  }
     366  this->bvElement->radius = longestAxis;
    366367  PRINTF(4)("\nLongest Axis is: Nr %i with a half-length of:%11.2f\n", longestAxisIndex, longestAxis);
    367368
     
    453454  if( unlikely(treeNode == NULL || nodeA == NULL || nodeB == NULL))
    454455    return;
     456
     457
     458  float distanceMax = nodeA->radius + nodeB->radius;
     459  float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len());
     460
     461
    455462
    456463  PRINTF(4)("collideWith\n");
  • branches/multi_player_map/src/util/multiplayer_team_deathmatch.cc

    r8838 r8842  
    8181
    8282  subscribeEvent( ES_GAME, SDLK_o );
    83   subscribeEvent( ES_GAME, SDLK_TAB );
     83  subscribeEvent( ES_GAME, SDLK_t );
    8484  subscribeEvent( ES_GAME, SDLK_F1 );
    8585  subscribeEvent( ES_MENU, SDLK_F1 );
     
    102102{
    103103  unsubscribeEvent( ES_GAME, SDLK_o );
    104   unsubscribeEvent( ES_GAME, SDLK_TAB );
     104  unsubscribeEvent( ES_GAME, SDLK_t );
    105105  unsubscribeEvent( ES_GAME, SDLK_F1 );
    106106  unsubscribeEvent( ES_MENU, SDLK_F1 );
     
    558558    }
    559559  }
    560   else if ( event.type == SDLK_TAB )
     560  else if ( event.type == SDLK_t )
    561561  {
    562562    if ( !event.bPressed )
Note: See TracChangeset for help on using the changeset viewer.