Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8953 in orxonox.OLD


Ignore:
Timestamp:
Jun 30, 2006, 2:09:24 PM (18 years ago)
Author:
patrick
Message:

walking now correclty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/npcs/generic_npc.cc

    r8952 r8953  
    170170{}
    171171
     172
    172173void GenericNPC::nextStep()
    173174{
     
    217218  anim.v = coordinate;
    218219  anim.type = Walk;
    219   anim.speed = 10.0f;
     220  anim.speed = 20.0f;
    220221
    221222  this->behaviourList.push_back(anim);
     
    329330      case Walk:
    330331        {
    331           if( this->getAnimation() != RUN)
    332             this->setAnimation(RUN, MD2_ANIM_LOOP);
    333 
    334           Vector dir = this->getAbsCoor() - currentAnimation.v;
    335           if (dir.len() < .5)
     332//           if( this->getAnimation() != RUN)
     333//             this->setAnimation(RUN, MD2_ANIM_LOOP);
     334
     335          Vector dest = currentAnimation.v - this->getAbsCoor();
     336          if (dest.len() < .5)
    336337            this->nextStep();
    337338          else
Note: See TracChangeset for help on using the changeset viewer.