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