Changeset 10702 in orxonox.OLD for branches/presentation/src/world_entities/weapons/nadion_laser.cc
- Timestamp:
- Jun 14, 2007, 11:23:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/nadion_laser.cc
r10698 r10702 88 88 89 89 this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL | WTYPE_LIGHT); 90 this->setProjectileTypeC("NadionBlast"); // FIXME temp projectile, until nadion_laser_bolt exists.90 this->setProjectileTypeC("NadionBlast"); 91 91 this->prepareProjectiles(20); 92 92 … … 167 167 void NadionLaser::draw() const 168 168 { 169 glPushMatrix(); 169 170 glMatrixMode(GL_MODELVIEW); 170 glPushMatrix();171 171 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 172 172 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 173 173 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 174 174 static_cast<StaticModel*>(this->getModel())->draw(); 175 176 177 175 glPopMatrix(); 178 176 }
Note: See TracChangeset
for help on using the changeset viewer.