Changeset 10643 in orxonox.OLD for trunk/src/world_entities/environments
- Timestamp:
- Apr 29, 2007, 6:51:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/rotor.cc
r10554 r10643 56 56 void Rotor::initRotation(float x, float y, float z) 57 57 { 58 this->updateNode(0.001); 58 59 this->mainDir = this->getAbsDir(); 59 60 this->rotation = Vector(x,y,z); … … 71 72 72 73 73 this->setAbsDir( /*this->mainDir**/Quaternion(rotation.x*this->totalTime, Vector(1,0,0)) *74 this->setAbsDir(this->mainDir*Quaternion(rotation.x*this->totalTime, Vector(1,0,0)) * 74 75 Quaternion(rotation.y*this->totalTime, Vector(0,1,0)) * 75 76 Quaternion(rotation.z*this->totalTime, Vector(0,0,1)));
Note: See TracChangeset
for help on using the changeset viewer.