Changeset 10004 in orxonox.OLD for branches/playability/src/world_entities/projectiles/hbolt.cc
- Timestamp:
- Dec 3, 2006, 10:36:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/hbolt.cc
r10003 r10004 47 47 this->angle = 0; 48 48 this->rotationSpeed = 1000; 49 49 50 50 51 this->emitter = new DotEmitter(100, 5, M_2_PI); … … 118 119 void HBolt::updateAngle (float time) 119 120 { 121 <<<<<<< .mine 122 this->angle += this->rotationSpeed * time; 123 ======= 120 124 this->angle = this->angle + this->rotationSpeed * time; 125 >>>>>>> .r10003 121 126 } 122 127 … … 173 178 //this->updateAngle(); 174 179 180 <<<<<<< .mine 181 //glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 182 //glRotatef(this->angle, 0.0, 0.0, -1.0); 183 glTranslatef (this->getAbsCoor ().x, 184 this->getAbsCoor ().y, 185 this->getAbsCoor ().z); 186 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 187 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 188 glRotatef(this->angle, 0.0, 0.0, -1.0); 189 ======= 175 190 //glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 176 191 //glRotatef(this->angle, 0.0, 0.0, -1.0); … … 181 196 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 182 197 glRotatef(this->angle, 0.0, 0.0, 1.0); 198 >>>>>>> .r10003 183 199 this->getModel()->draw(); 184 200 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.