Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

small rotation fix

File:
1 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)));
Note: See TracChangeset for help on using the changeset viewer.