Changeset 10078 in orxonox.OLD for branches/playability/src/world_entities/projectiles
- Timestamp:
- Dec 14, 2006, 10:58:41 AM (18 years ago)
- Location:
- branches/playability/src/world_entities/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/mbolt.cc
r10073 r10078 45 45 { 46 46 this->registerObject(this, MBolt::_objectList); 47 this->loadModel("models/projectiles/mbolt.obj",0.25); 47 this->loadModel("models/projectiles/mbolt.obj"); 48 48 49 //this->loadModel("models/projectiles/laser.obj"); 49 50 … … 55 56 56 57 //this->emitter = new DotEmitter(1000, 0, 0); 57 this->emitter = new BoxEmitter(Vector(8,1,1)*dynamic_cast<StaticModel*>(this->getModel())->getScaleFactor(), 1000, 0, 0);58 this->emitter = new DotEmitter(200, 0, 0); 58 59 this->emitter->setParent(this); 59 60 this->emitter->setSpread(M_PI,M_PI); … … 76 77 /** 77 78 * standard deconstructor 78 79 /** 80 */ 79 * 80 */ 81 81 MBolt::~MBolt () 82 82 { … … 104 104 if (unlikely(MBolt::trailParticles == NULL)) 105 105 { 106 MBolt::trailParticles = new SpriteParticles( 3000);106 MBolt::trailParticles = new SpriteParticles(1000); 107 107 MBolt::trailParticles->setName("BoomerangProjectileTrailParticles"); 108 108 MBolt::trailParticles->setMaterialTexture("maps/radial-trans-noise.png"); … … 134 134 135 135 this->emitter->setSpread(0); 136 this->emitter->setEmissionRate( 80.0);136 this->emitter->setEmissionRate(10.0); 137 137 this->emitter->setEmissionVelocity(0); 138 138 this->updateNode(0); … … 198 198 199 199 glPushMatrix(); 200 201 200 float matrix[4][4]; 202 201 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); … … 205 204 glMultMatrixf((float*)matrix); 206 205 207 glScalef( 3.0, 0.7, 0.7); // no double rescale206 glScalef(0.75, 0.7/4, 0.7/4); // no double rescale 208 207 209 208 this->mat->select(); -
branches/playability/src/world_entities/projectiles/swarm_projectile.cc
r10073 r10078 95 95 SwarmProjectile::trailParticles->setName("SwarmProjectileTrailParticles"); 96 96 SwarmProjectile::trailParticles->setMaterialTexture("maps/radial-trans-noise.png"); 97 SwarmProjectile::trailParticles->setLifeSpan(. 5, 0);98 SwarmProjectile::trailParticles->setRadius(0.0, . 5);99 SwarmProjectile::trailParticles->setRadius(0.2, 1. 5);100 SwarmProjectile::trailParticles->setRadius(.5, 1.0);101 SwarmProjectile::trailParticles->setRadius(1.0, 0. 6);97 SwarmProjectile::trailParticles->setLifeSpan(.3, 0); 98 SwarmProjectile::trailParticles->setRadius(0.0, .7); 99 SwarmProjectile::trailParticles->setRadius(0.2, 1.3); 100 SwarmProjectile::trailParticles->setRadius(.5, .8); 101 SwarmProjectile::trailParticles->setRadius(1.0, 0.3); 102 102 SwarmProjectile::trailParticles->setColor(0.0, 1,0,0,.7); 103 103 SwarmProjectile::trailParticles->setColor(0.2, .8,.8,0,.5); … … 123 123 124 124 this->updateNode(0); 125 this->emitter->setEmissionRate( 160.0);125 this->emitter->setEmissionRate(50.0); 126 126 this->emitter->setEmissionVelocity(0.0); 127 this->emitter->setInheritSpeed(0); 127 128 128 129 this->setHealth(10.0* (float)rand()/(float)RAND_MAX);
Note: See TracChangeset
for help on using the changeset viewer.