Changeset 10698 in orxonox.OLD for trunk/src/world_entities/projectiles/lbolt.cc
- Timestamp:
- Jun 14, 2007, 5:33:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/lbolt.cc
r10618 r10698 62 62 this->halo = new Billboard(); 63 63 this->halo->setSize(.35, .35); 64 this->halo->setTexture("hbolt_halo. png");64 this->halo->setTexture("hbolt_halo.jpg"); 65 65 this->halo->setVisibility(false); 66 66 67 this->halo->setPulse(); 67 68 68 69 } … … 120 121 121 122 this->toList(OM_DEAD); 122 this->removeNode();123 // this->removeNode(); 123 124 LBolt::fastFactory->kill(this); 124 125 } … … 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();
Note: See TracChangeset
for help on using the changeset viewer.