Changeset 1555 for code/trunk/src/orxonox/tools
- Timestamp:
- Jun 6, 2008, 9:05:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/tools/ParticleInterface.cc
r1553 r1555 39 39 40 40 #include "GraphicsEngine.h" 41 #include "Orxonox.h" 41 42 #include "util/Convert.h" 42 43 … … 50 51 this->sceneNode_ = 0; 51 52 this->particleSystem_ = GraphicsEngine::getSingleton().getSceneManager()->createParticleSystem("particles" + getConvertedValue<unsigned int, std::string>(ParticleInterface::counter_s++), templateName); 53 this->particleSystem_->setSpeedFactor(Orxonox::getSingleton()->getTimeFactor()); 52 54 } 53 55 … … 138 140 void ParticleInterface::setSpeedFactor(float factor) 139 141 { 140 this->particleSystem_->setSpeedFactor( factor);142 this->particleSystem_->setSpeedFactor(Orxonox::getSingleton()->getTimeFactor() * factor); 141 143 } 142 144 float ParticleInterface::getSpeedFactor() const
Note: See TracChangeset
for help on using the changeset viewer.