Changeset 6098 for code/branches/particles2/src/modules
- Timestamp:
- Nov 18, 2009, 5:19:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/particles2/src/modules/weapons/projectiles/Rocket.cc
r6087 r6098 51 51 { 52 52 RegisterObject(Rocket);// - register the Rocket class to the core 53 54 this->localAngularVelocity_ = 0; 53 55 54 56 if (GameMode::isMaster()) … … 60 62 61 63 this->model_ = new Model(this); 62 this->model_->setMeshSource("rocket_test.mesh"); 63 this->attach(this->model_); 64 this->model_->setMeshSource("rocket.mesh"); 65 this->attach(this->model_); 66 ParticleSpawner* fire = new ParticleSpawner(this); 67 this->attach(fire); 68 fire->setOrientation(this->getOrientation()); 69 fire->setSource("Orxonox/rocketfire"); 64 70 65 71 this->enableCollisionCallback(); … … 73 79 74 80 this->destroyTimer_.setTimer(this->lifetime_, false, createExecutor(createFunctor(&Rocket::destroyObject, this))); 81 82 75 83 } 76 84 … … 156 164 effect->setOrientation(this->getOrientation()); 157 165 effect->setDestroyAfterLife(true); 158 effect->setSource("Orxonox/explosion 3");166 effect->setSource("Orxonox/explosion4"); 159 167 effect->setLifetime(2.0f); 160 168 } 169 161 170 { 162 171 ParticleSpawner* effect = new ParticleSpawner(this->owner_->getCreator()); … … 196 205 effect->setOrientation(this->getOrientation()); 197 206 effect->setDestroyAfterLife(true); 198 effect->setSource("Orxonox/explosion 3");207 effect->setSource("Orxonox/explosion4"); 199 208 effect->setLifetime(2.0f); 200 209 } 210 201 211 { 202 212 ParticleSpawner* effect = new ParticleSpawner(this->owner_->getCreator());
Note: See TracChangeset
for help on using the changeset viewer.