Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10553 in orxonox.OLD for trunk/src/world_entities/environments


Ignore:
Timestamp:
Jan 31, 2007, 11:00:11 AM (18 years ago)
Author:
bknecht
Message:

small rotation fix

Location:
trunk/src/world_entities/environments
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/environments/rotor.cc

    r10533 r10553  
    5656void Rotor::initRotation(float x, float y, float z)
    5757{
     58     this->mainDir = this->getAbsDir();
    5859     this->rotation = Vector(x,y,z);
    5960/*     this->rotation = this->rotation.getNormalized();*/
     
    7071
    7172
    72      this->setAbsDir(Quaternion(rotation.x*this->totalTime, Vector(1,0,0)) *
     73     this->setAbsDir(this->mainDir*Quaternion(rotation.x*this->totalTime, Vector(1,0,0)) *
    7374                    Quaternion(rotation.y*this->totalTime, Vector(0,1,0)) *
    7475                    Quaternion(rotation.z*this->totalTime, Vector(0,0,1)));
  • trunk/src/world_entities/environments/rotor.h

    r10533 r10553  
    2929  private:
    3030    Vector              rotation;         //!< the rotation axis
     31    Quaternion          mainDir;          //!< the start direction
    3132    double              totalTime;        //!< total time
    3233};
Note: See TracChangeset for help on using the changeset viewer.