Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9026 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jul 3, 2006, 11:21:33 AM (18 years ago)
Author:
patrick
Message:

trunk: npcs are walking again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npcs/generic_npc.cc

    r9003 r9026  
    8989
    9090  // collision reaction registration
    91   this->subscribeReaction(CREngine::CR_PHYSICS_GROUND_WALK, CL_BSP_ENTITY);
     91//   this->subscribeReaction(CREngine::CR_PHYSICS_GROUND_WALK, CL_BSP_ENTITY);
    9292}
    9393
     
    524524
    525525  // physical falling of the player
    526   if( !this->isOnGround())
    527   {
    528     this->fallVelocity += 300.0f * dt;
    529     velocity -= Vector(0.0, 1.0, 0.0) * this->fallVelocity;
    530    // PRINTF(0)("%s is not on ground\n", this->getName());
    531   }
    532   else
    533   {
    534     this->fallVelocity = 0.0f;
    535   }
    536 
    537   this->shiftCoor(Vector(0, -this->fallVelocity * dt,0));
     526//   if( !this->isOnGround())
     527//   {
     528//     this->fallVelocity += 300.0f * dt;
     529//     velocity -= Vector(0.0, 1.0, 0.0) * this->fallVelocity;
     530//    // PRINTF(0)("%s is not on ground\n", this->getName());
     531//     this->shiftCoor(Vector(0, -this->fallVelocity * dt,0));
     532//   }
     533//   else
     534//   {
     535//     this->fallVelocity = 0.0f;
     536//   }
     537
     538
    538539
    539540}
Note: See TracChangeset for help on using the changeset viewer.