Changeset 10635 in orxonox.OLD for branches/vs-enhencements/src/world_entities/projectiles
- Timestamp:
- Apr 19, 2007, 1:13:11 PM (18 years ago)
- Location:
- branches/vs-enhencements/src/world_entities/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/projectiles/lbolt.cc
r10618 r10635 65 65 this->halo->setVisibility(false); 66 66 67 this->halo->setPulse(); 67 68 68 69 } … … 148 149 149 150 angle += LBolt::rotationSpeed * dt; 151 if(angle > 360) 152 angle -= 360; 150 153 151 154 for( ObjectList<NPC>::const_iterator eIterator = NPC::objectList().begin(); eIterator !=NPC::objectList().end(); eIterator++) … … 183 186 float matrix[4][4]; 184 187 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 185 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 188 this->halo->draw(); 189 190 Vector tmpRot; 191 tmpRot = this->flightDirection.getNormalized(); 192 glRotatef(this->angle, tmpRot.x, tmpRot.y, tmpRot.z); 193 tmpRot = this->getAbsDir().getSpacialAxis(); 186 194 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 187 glRotatef(this->angle, 1.0, 0.0, 0.0); 195 188 196 this->getAbsDir().matrix (matrix); 189 197 glMultMatrixf((float*)matrix); 190 198 this->getModel()->draw(); 191 199 192 this->halo->draw();193 194 200 glPopMatrix(); 195 201 glPopAttrib(); -
branches/vs-enhencements/src/world_entities/projectiles/mbolt.cc
r10618 r10635 212 212 float matrix[4][4]; 213 213 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 214 glRotatef(this->angle, 1.0f, 0.0f, 0.0f); //spinning missile 214 // glRotatef(this->angle, 1.0f, 0.0f, 0.0f); //spinning missile 215 glRotatef(this->angle, this->flightDirection.x, this->flightDirection.y, this->flightDirection.z); 215 216 this->getAbsDir().matrix (matrix); 216 217 glMultMatrixf((float*)matrix);
Note: See TracChangeset
for help on using the changeset viewer.