Changeset 10618 in orxonox.OLD for trunk/src/world_entities/projectiles/hbolt.cc
- Timestamp:
- Apr 4, 2007, 12:13:53 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 16 16 OrxonoxPlayability.kdevses 17 17 OrxonoxPlayability.kdevelop.pcs 18 orxonox.backtrace 19 orxonox.kdevses 20 orxonox.kdevelop.pcs
-
- Property svn:ignore
-
trunk/src/world_entities/projectiles/hbolt.cc
r10545 r10618 49 49 50 50 this->angle = 0; 51 this->rotationSpeed = 600;51 // this->rotationSpeed = 600; 52 52 53 53 this->emitter = new DotEmitter(100, 5, M_2_PI); … … 146 146 this->deactivate(); 147 147 148 this->angle += this->rotationSpeed * dt;148 this->angle += HBolt::rotationSpeed * dt; 149 149 150 150 for( ObjectList<NPC>::const_iterator eIterator = NPC::objectList().begin(); eIterator !=NPC::objectList().end(); eIterator++) … … 177 177 glPushAttrib(GL_ENABLE_BIT); 178 178 glDisable(GL_LIGHTING); 179 glDisable(GL_FOG);179 // glDisable(GL_FOG); 180 180 181 181 glMatrixMode(GL_MODELVIEW); 182 182 glPushMatrix(); 183 183 184 185 glTranslatef (this->getAbsCoor ().x, 186 this->getAbsCoor ().y, 187 this->getAbsCoor ().z); 188 189 this->halo->draw(); 190 191 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 192 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 193 glRotatef(this->angle, 0.0, 0.0, 1.0); 194 195 this->getModel()->draw(); 184 // float matrix[4][4]; 185 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, 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 // glMultMatrixf((float*)matrix); 190 this->getModel()->draw(); 191 this->halo->draw(); 196 192 197 193 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.