Changeset 6826 in orxonox.OLD for trunk/src/world_entities/projectiles
- Timestamp:
- Jan 29, 2006, 1:35:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/hyperblast.cc
r6825 r6826 23 23 #include "class_list.h" 24 24 25 #include "dot_emitter.h" 26 #include "sprite_particles.h" 25 #include "box_emitter.h" 27 26 #include "spark_particles.h" 28 27 … … 47 46 this->size = 4.0; 48 47 49 this->emitter = new DotEmitter(100, 5, M_2_PI); 48 this->emitter = new BoxEmitter(Vector(400, 2, 2), 100, 5, M_2_PI); 49 this->emitter->setRelCoor(200,0,0); 50 50 this->emitter->setParent(this); 51 51 this->emitter->setSpread(M_PI, M_PI); … … 141 141 glPushMatrix(); 142 142 143 float matrix[4][4]; 144 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 145 this->getAbsDir().matrix (matrix); 146 glMultMatrixf((float*)matrix); 147 glScalef(2.0, this->size, this->size); 148 this->getModel()->draw(); 143 glTranslatef (this->getAbsCoor ().x, 144 this->getAbsCoor ().y, 145 this->getAbsCoor ().z); 146 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 147 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 148 149 // glScalef(2.0, this->size, this->size); 150 // this->getModel()->draw(); 149 151 150 152 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.