Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8961 in orxonox.OLD


Ignore:
Timestamp:
Jun 30, 2006, 3:17:17 PM (18 years ago)
Author:
patrick
Message:

orientation works too, its probably a little bit crapy but it works

File:
1 edited

Legend:

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

    r8959 r8961  
    412412          {
    413413            this->shiftCoor(dest.getNormalized() * currentAnimation.speed * dt);
     414            this->setAbsDir(Quaternion(dest.getNormalized(), Vector(0.0, 1.0, 0.0)) * Quaternion(-M_PI_2, Vector(0.0, 1.0, 0.0)));
    414415          }
    415416        }
     
    424425        {
    425426          this->shiftCoor(dest.getNormalized() * currentAnimation.speed * dt);
     427          this->setAbsDir(Quaternion(dest.getNormalized(), Vector(0.0, 1.0, 0.0)) * Quaternion(-M_PI_2, Vector(0.0, 1.0, 0.0)));
    426428        }
    427429      }
     
    436438        {
    437439          this->shiftCoor(dest.getNormalized() * currentAnimation.speed * dt);
     440          this->setAbsDir(Quaternion(dest.getNormalized(), Vector(0.0, 1.0, 0.0)) * Quaternion(-M_PI_2, Vector(0.0, 1.0, 0.0)));
    438441        }
    439442      }
Note: See TracChangeset for help on using the changeset viewer.