Changeset 10618 in orxonox.OLD for trunk/src/world_entities/projectiles/swarm_projectile.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/swarm_projectile.cc
r10547 r10618 39 39 SwarmProjectile::SwarmProjectile () : Projectile() 40 40 { 41 42 /* this->loadModel("models/projectiles/orx-rocket.obj", 0.5);*/ 43 this->loadModel("models/projectiles/swarm_projectile.obj", .25); // no double rescale (see draw()) 41 this->loadModel("models/projectiles/swarm_projectile.obj", .333); // no double rescale (see draw()) 44 42 this->loadExplosionSound("sounds/explosions/explosion_4.wav"); 45 43 … … 59 57 this->elecDamage = 0; 60 58 61 this->trail = new Trail(2.5,4,.2, this); 62 //this->trail->setParent( this); 59 this->trail = new Trail(2.5, 4, .2, this); 63 60 this->trail->setTexture( "textures/laser.png"); 61 62 // this->maxVelocity = 300; 63 64 this->smoke = new Trail(20, 10, .3, this); 65 this->smoke->setTexture ("textures/engine.png"); 66 67 this->angle = 0; 68 64 69 65 70 … … 83 88 // delete this->emitter; 84 89 delete this->trail; 90 delete this->smoke; 85 91 } 86 92 … … 113 119 this->setHealth(10.0* (float)rand()/(float)RAND_MAX); 114 120 115 this->maxVelocity = 300;116 117 this->rotationSpeed = 360;121 // this->maxVelocity = 300; 122 123 // this->rotationSpeed = 360; 118 124 this->angle = 0; 119 125 … … 216 222 217 223 this->trail->tick(time); 224 this->smoke->tick(time); 218 225 219 226 this->angle += this->rotationSpeed * time; 227 220 228 while (this->angle > 360) 229 { 221 230 this->angle -= 360; 231 } 222 232 223 233 this->lastDir = this->curDir; … … 272 282 glTranslatef(-.9,0,0); 273 283 this->trail->draw(); 284 glTranslatef( -1.1, 0, 0); 285 this->smoke->draw(); 274 286 glPopMatrix(); 275 287 }
Note: See TracChangeset
for help on using the changeset viewer.