Changeset 8952 in orxonox.OLD for branches/single_player_map
- Timestamp:
- Jun 30, 2006, 2:04:53 PM (18 years ago)
- 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 77 77 float side = 0; 78 78 79 PRINTF(0)("collision raction======================================\n");79 //PRINTF(0)("collision raction======================================\n"); 80 80 81 81 const std::vector<CollisionEvent*>* collisionEvents = &(collision->getCollisionEvents()); … … 155 155 } 156 156 } 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); 158 158 159 159 -
branches/single_player_map/src/world_entities/creatures/fps_player.cc
r8944 r8952 83 83 this->bBackward = false; 84 84 this->bJump = false; 85 this->bPosBut = false; 85 86 86 87 this->xMouse = 0.0f; … … 206 207 void FPSPlayer::tick (float time) 207 208 { 209 210 if( this->bPosBut) 211 { 212 this->bPosBut = false; 213 printf("guard:walkTo( %f, height, %f)\n",this->getAbsCoorX(),this->getAbsCoorZ()); 214 } 215 208 216 Playable::tick( time ); 209 217 … … 339 347 } 340 348 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 42 42 bool bBackward; 43 43 bool bJump; //!< jumping 44 bool bPosBut; //!< position button 44 45 45 46 float xMouse; //!< mouse moved in x-Direction -
branches/single_player_map/src/world_entities/npcs/generic_npc.cc
r8951 r8952 224 224 void GenericNPC::walkTo(float x, float y, float z) 225 225 { 226 printf("Walking to %f, %f, %f \n",x,y,z);226 //printf("Walking to %f, %f, %f \n",x,y,z); 227 227 this->walkTo(Vector(x,y,z)); 228 228 … … 337 337 else 338 338 { 339 this->shiftCoor(dir.getNormalized() * currentAnimation.speed dt);339 this->shiftCoor(dir.getNormalized() * currentAnimation.speed * dt); 340 340 } 341 341 }
Note: See TracChangeset
for help on using the changeset viewer.