Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2010, 2:20:21 PM (15 years ago)
Author:
edwind
Message:

commit by ed

Location:
code/branches/fps/src/orxonox/worldentities/pawns
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fps/src/orxonox/worldentities/pawns/FpsPlayer.cc

    r6867 r6872  
    7979        this->setConfigValues();
    8080        this->registerVariables();
     81       
    8182    }
    8283
     
    122123        if (this->hasLocalController())
    123124        {
    124            
     125            this->setOrientation(savedOrientation_);
     126           
    125127            thistickboost=false;
    126128           
     
    150152
    151153            this->yaw_ = this->pitch_ = this->roll_ = 0;
     154           
     155            //Quaternion q=this->getOrientation();
     156            //if( q.y<0.99 ) this->setOrientation(q.w, q.x, 1.0, q.z);
     157            this->setAngularVelocity(0.0, 0.0, 0.0);
     158            savedOrientation_=this->getOrientation();
    152159        }
    153160
  • code/branches/fps/src/orxonox/worldentities/pawns/FpsPlayer.h

    r6867 r6872  
    8888            bool isfloor;
    8989            bool thistickboost;
     90            Quaternion savedOrientation_;
    9091    };
    9192}
Note: See TracChangeset for help on using the changeset viewer.