Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5003 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Aug 13, 2005, 10:19:55 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more reliable rotations

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/p_node.cc

    r5001 r5003  
    541541      if (unlikely(this->toDirection != NULL))
    542542      {
    543         Quaternion rotQuat = (*this->toDirection / this->relDirection)*dt;
     543        Quaternion rotQuat = (*this->toDirection / this->relDirection);
    544544//         printf("1: ");
    545545//         this->relDirection.debug();
    546546//         printf("2: ");
    547547//         this->toDirection->debug();
    548         //printf("3: ");
    549         //rotQuat.debug2();
     548        printf("3: ");
     549        rotQuat.debug2();
    550550
    551551        if (likely(rotQuat.getSpacialAxisAngle() >= .01))
  • orxonox/trunk/src/world_entities/player.cc

    r5002 r5003  
    121121void Player::init()
    122122{
     123  this->setAbsDir(Quaternion(.5, Vector(1,0,0)));
     124
    123125  this->setClassID(CL_PLAYER, "Player");
    124126  travelSpeed = 15.0;
Note: See TracChangeset for help on using the changeset viewer.