Changeset 10618 in orxonox.OLD for trunk/src/world_entities/projectiles/lbolt.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/lbolt.cc
r10545 r10618 59 59 60 60 this->angle = 0; 61 this->rotationSpeed = 130;62 61 63 62 this->halo = new Billboard(); … … 148 147 this->deactivate(); 149 148 150 angle += rotationSpeed * dt;149 angle += LBolt::rotationSpeed * dt; 151 150 152 151 for( ObjectList<NPC>::const_iterator eIterator = NPC::objectList().begin(); eIterator !=NPC::objectList().end(); eIterator++) … … 182 181 glPushMatrix(); 183 182 184 float matrix[4][4]; 185 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 183 float matrix[4][4]; 184 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 185 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 186 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 187 glRotatef(this->angle, 1.0, 0.0, 0.0); 188 this->getAbsDir().matrix (matrix); 189 glMultMatrixf((float*)matrix); 190 this->getModel()->draw(); 186 191 187 glRotatef(angle, 1.0, 0.0, 0.0); 188 this->getAbsDir().matrix (matrix); 189 glMultMatrixf((float*)matrix); 190 this->getModel()->draw(); 191 192 this->halo->draw(); 192 this->halo->draw(); 193 193 194 194 glPopMatrix(); 195 196 195 glPopAttrib(); 197 196 }
Note: See TracChangeset
for help on using the changeset viewer.