- Timestamp:
- Jan 31, 2007, 11:00:11 AM (18 years ago)
- Location:
- trunk/src/world_entities/environments
- Files:
-
- 2 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))); -
trunk/src/world_entities/environments/rotor.h
r10533 r10553 29 29 private: 30 30 Vector rotation; //!< the rotation axis 31 Quaternion mainDir; //!< the start direction 31 32 double totalTime; //!< total time 32 33 };
Note: See TracChangeset
for help on using the changeset viewer.