Changeset 1662 for code/branches/gui/src/orxonox/tools
- Timestamp:
- Aug 19, 2008, 8:12:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/tools/ParticleInterface.cc
r1654 r1662 56 56 this->detaillevel_ = (unsigned int)detaillevel; 57 57 this->particleSystem_ = GraphicsEngine::getInstance().getLevelSceneManager()->createParticleSystem("particles" + getConvertedValue<unsigned int, std::string>(ParticleInterface::counter_s++), templateName); 58 this->particleSystem_->setSpeedFactor(Orxonox::getInstance().getTimeFactor()); 58 //this->particleSystem_->setSpeedFactor(Orxonox::getInstance().getTimeFactor()); 59 this->particleSystem_->setSpeedFactor(1.0f); 59 60 60 61 if (GraphicsEngine::getInstance().getDetailLevelParticle() < (unsigned int)this->detaillevel_) … … 171 172 void ParticleInterface::setSpeedFactor(float factor) 172 173 { 173 this->particleSystem_->setSpeedFactor(Orxonox::getInstance().getTimeFactor() * factor); 174 //this->particleSystem_->setSpeedFactor(Orxonox::getInstance().getTimeFactor() * factor); 175 this->particleSystem_->setSpeedFactor(1.0f * factor); 174 176 } 175 177 float ParticleInterface::getSpeedFactor() const 176 178 { 177 return (this->particleSystem_->getSpeedFactor() / Orxonox::getInstance().getTimeFactor()); 179 //return (this->particleSystem_->getSpeedFactor() / Orxonox::getInstance().getTimeFactor()); 180 return (this->particleSystem_->getSpeedFactor() / 1.0f); 178 181 } 179 182
Note: See TracChangeset
for help on using the changeset viewer.