- Timestamp:
- Jun 12, 2008, 10:53:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/orxonox/objects/ParticleProjectile.cc
r1563 r1596 32 32 #include "SpaceShip.h" 33 33 #include "core/CoreIncludes.h" 34 34 #include "core/ConfigValueIncludes.h" 35 35 namespace orxonox 36 36 { … … 52 52 this->particles_ = 0; 53 53 } 54 55 this->setConfigValues(); 54 56 } 55 57 … … 60 62 } 61 63 64 void ParticleProjectile::setConfigValues() 65 { 66 SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second").callback(&ParticleProjectile::speedChanged); 67 } 68 69 void ParticleProjectile::speedChanged() 70 { 71 Projectile::speed_s = this->speed_; 72 if (this->owner_) 73 this->setVelocity(this->owner_->getInitialDir() * this->speed_); 74 } 75 62 76 void ParticleProjectile::changedVisibility() 63 77 {
Note: See TracChangeset
for help on using the changeset viewer.