Changeset 10553 in orxonox.OLD for trunk/src/world_entities/environments/rotor.cc
- Timestamp:
- Jan 31, 2007, 11:00:11 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/rotor.cc
r10533 r10553 56 56 void Rotor::initRotation(float x, float y, float z) 57 57 { 58 this->mainDir = this->getAbsDir(); 58 59 this->rotation = Vector(x,y,z); 59 60 /* this->rotation = this->rotation.getNormalized();*/ … … 70 71 71 72 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)) * 73 74 Quaternion(rotation.y*this->totalTime, Vector(0,1,0)) * 74 75 Quaternion(rotation.z*this->totalTime, Vector(0,0,1)));
Note: See TracChangeset
for help on using the changeset viewer.