Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8915 in orxonox.OLD


Ignore:
Timestamp:
Jun 29, 2006, 5:30:10 PM (18 years ago)
Author:
snellen
Message:

events get grabed now

Location:
branches/single_player_map/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc

    r8910 r8915  
    6464
    6565  // put it back
    66     PRINTF(0)("putting it back to lastPos: \n");
     66    // PRINTF(0)("putting it back to lastPos: \n");
    6767     //this->lastPositions[0].debug();
    68       PRINTF(0)("current pos:\n");
     68    //  PRINTF(0)("current pos:\n");
    6969     collision->getEntityB()->getAbsCoor().debug();
    7070     
     
    9797   
    9898    case COLLISION_TYPE_AXIS_X:
    99       PRINTF(0)("height: %f          , model height: %f\n", height, box->halfLength[1]);
    100       PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z);
    101       PRINTF(0)("COLLISION_TYPE_AXIS_X \n");
     99     // PRINTF(0)("height: %f          , model height: %f\n", height, box->halfLength[1]);
     100     // PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z);
     101     // PRINTF(0)("COLLISION_TYPE_AXIS_X \n");
    102102      break;
    103103   case COLLISION_TYPE_AXIS_Y:
    104104
    105105      height = collPos.y - box->halfLength[1];
    106       PRINTF(0)("height: %f          , model height: %f\n", height, box->halfLength[1]);
    107        PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z);
    108        PRINTF(0)("COLLISION_TYPE_AXIS_Y \n");
     106     // PRINTF(0)("height: %f          , model height: %f\n", height, box->halfLength[1]);
     107     //  PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z);
     108     //  PRINTF(0)("COLLISION_TYPE_AXIS_Y \n");
    109109//       // object is beneath the plane (ground)
    110110//       if( height <= 0.0f )
     
    122122   
    123123    case COLLISION_TYPE_AXIS_Z:
    124       PRINTF(0)("height: %f          , model height: %f\n", height, box->halfLength[1]);
    125       PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z);
    126       PRINTF(0)("COLLISION_TYPE_AXIS_Z \n");
     124    //  PRINTF(0)("height: %f          , model height: %f\n", height, box->halfLength[1]);
     125    //  PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z);
     126    //  PRINTF(0)("COLLISION_TYPE_AXIS_Z \n");
    127127     break;
    128128
  • branches/single_player_map/src/lib/event/event_handler.cc

    r8894 r8915  
    357357  else
    358358  {
    359 //     SDL_WM_GrabInput(SDL_GRAB_ON);
    360 //     SDL_ShowCursor(SDL_DISABLE);
     359    SDL_WM_GrabInput(SDL_GRAB_ON);
     360    SDL_ShowCursor(SDL_DISABLE);
    361361  }
    362362}
  • branches/single_player_map/src/lib/script_engine/script_manager.cc

    r8711 r8915  
    7474    while(!scripts->empty())
    7575      delete scripts->front();
     76  //Delete all triggers
     77  if(this->getTriggers())
     78    while(!triggers->empty())
     79      delete triggers->front();
     80 
    7681}
    7782
  • branches/single_player_map/src/world_entities/npcs/generic_npc.cc

    r8914 r8915  
    184184void GenericNPC::walkTo(const Vector& coordinate)
    185185{
     186 
    186187  GenericNPC::Anim anim;
    187188  anim.v = coordinate;
     
    193194void GenericNPC::walkTo(float x, float y, float z)
    194195{
     196  printf("Walking to %f, %f, %f \n",x,y,z);
    195197  this->walkTo(Vector(x,y,z));
    196198
Note: See TracChangeset for help on using the changeset viewer.