Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 19, 2008, 8:12:15 PM (16 years ago)
Author:
rgrieder
Message:
  • Changed static Executor/Functor in ConsoleCommand to generic one that enables console commands for member functions. (This is more of a temporary solution, but can be made permanent with right adjustments)
  • The whole GameState thing seems to works so far. But I there's only standalone mode at the moment
  • Console now shows in GUI too. I will have to implement a master InputState in the InputManager (little bit of a break with the concept, but probably necessary)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/tools/ParticleInterface.cc

    r1654 r1662  
    5656    this->detaillevel_ = (unsigned int)detaillevel;
    5757    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);
    5960
    6061    if (GraphicsEngine::getInstance().getDetailLevelParticle() < (unsigned int)this->detaillevel_)
     
    171172  void ParticleInterface::setSpeedFactor(float factor)
    172173  {
    173     this->particleSystem_->setSpeedFactor(Orxonox::getInstance().getTimeFactor() * factor);
     174    //this->particleSystem_->setSpeedFactor(Orxonox::getInstance().getTimeFactor() * factor);
     175    this->particleSystem_->setSpeedFactor(1.0f * factor);
    174176  }
    175177  float ParticleInterface::getSpeedFactor() const
    176178  {
    177     return (this->particleSystem_->getSpeedFactor() / Orxonox::getInstance().getTimeFactor());
     179    //return (this->particleSystem_->getSpeedFactor() / Orxonox::getInstance().getTimeFactor());
     180    return (this->particleSystem_->getSpeedFactor() / 1.0f);
    178181  }
    179182
Note: See TracChangeset for help on using the changeset viewer.