Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8952 in orxonox.OLD for branches/single_player_map/src


Ignore:
Timestamp:
Jun 30, 2006, 2:04:53 PM (18 years ago)
Author:
snellen
Message:

corrected typo

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

    r8943 r8952  
    7777  float side = 0;
    7878
    79   PRINTF(0)("collision raction======================================\n");
     79  //PRINTF(0)("collision raction======================================\n");
    8080
    8181  const std::vector<CollisionEvent*>* collisionEvents = &(collision->getCollisionEvents());
     
    155155    }
    156156  }
    157   PRINTF(0)("collision distances: x: %f, y: %f, z: %f\n", front, height, side);
     157  //PRINTF(0)("collision distances: x: %f, y: %f, z: %f\n", front, height, side);
    158158
    159159
  • branches/single_player_map/src/world_entities/creatures/fps_player.cc

    r8944 r8952  
    8383  this->bBackward = false;
    8484  this->bJump = false;
     85  this->bPosBut = false;
    8586
    8687  this->xMouse = 0.0f;
     
    206207void FPSPlayer::tick (float time)
    207208{
     209 
     210  if( this->bPosBut)
     211  {
     212    this->bPosBut = false;
     213    printf("guard:walkTo( %f, height, %f)\n",this->getAbsCoorX(),this->getAbsCoorZ());
     214  }
     215 
    208216  Playable::tick( time );
    209217
     
    339347  }
    340348  else if( event.type == KeyMapper::PEV_JUMP)
    341     this->getAbsCoor().debug();
    342 }
    343 
    344 
    345 
    346 
     349    this->bPosBut = event.bPressed;
     350}
     351
     352
     353
     354
  • branches/single_player_map/src/world_entities/creatures/fps_player.h

    r8939 r8952  
    4242    bool                  bBackward;
    4343    bool                  bJump;              //!< jumping
     44    bool                  bPosBut;             //!< position button
    4445
    4546    float                 xMouse;             //!< mouse moved in x-Direction
  • branches/single_player_map/src/world_entities/npcs/generic_npc.cc

    r8951 r8952  
    224224void GenericNPC::walkTo(float x, float y, float z)
    225225{
    226   printf("Walking to %f, %f, %f \n",x,y,z);
     226  //printf("Walking to %f, %f, %f \n",x,y,z);
    227227  this->walkTo(Vector(x,y,z));
    228228
     
    337337          else
    338338          {
    339             this->shiftCoor(dir.getNormalized() * currentAnimation.speed dt);
     339            this->shiftCoor(dir.getNormalized() * currentAnimation.speed * dt);
    340340          }
    341341        }
Note: See TracChangeset for help on using the changeset viewer.