Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9043 in orxonox.OLD for branches/single_player_map


Ignore:
Timestamp:
Jul 3, 2006, 3:45:11 PM (18 years ago)
Author:
patrick
Message:

run and crouch also works

File:
1 edited

Legend:

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

    r9042 r9043  
    286286
    287287        Vector dir = (currentAnimation.v - this->getAbsCoor()).getNormalized();
     288        dir.y = 0.0f;
     289        dir.getNormalized();
    288290        this->setAbsDirSoft(Quaternion(dir, Vector(0.0, 1.0, 0.0)) * Quaternion(-M_PI_2, Vector(0.0, 1.0, 0.0)), 4.0);
    289291
     
    297299
    298300        Vector dir = (currentAnimation.v - this->getAbsCoor()).getNormalized();
     301        dir.y = 0.0f;
     302        dir.getNormalized();
    299303        this->setAbsDirSoft(Quaternion(dir, Vector(0.0, 1.0, 0.0)) * Quaternion(-M_PI_2, Vector(0.0, 1.0, 0.0)), 4.0);
    300304
Note: See TracChangeset for help on using the changeset viewer.