Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 6, 2008, 9:05:27 PM (16 years ago)
Author:
landauf
Message:
  • ParticleInterface uses Orxonox::getTimeFactor to make particle effects independend of gamespeed (but there's still a drawback with thrusters)
  • reduced OIS includes in input-related classes, changed OIS search and include to avoid conflicts with other versions of OIS (for example in Ogre). not yet tested on tardis.
File:
1 edited

Legend:

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

    r1553 r1555  
    3939
    4040#include "GraphicsEngine.h"
     41#include "Orxonox.h"
    4142#include "util/Convert.h"
    4243
     
    5051    this->sceneNode_ = 0;
    5152    this->particleSystem_ = GraphicsEngine::getSingleton().getSceneManager()->createParticleSystem("particles" + getConvertedValue<unsigned int, std::string>(ParticleInterface::counter_s++), templateName);
     53    this->particleSystem_->setSpeedFactor(Orxonox::getSingleton()->getTimeFactor());
    5254  }
    5355
     
    138140  void ParticleInterface::setSpeedFactor(float factor)
    139141  {
    140     this->particleSystem_->setSpeedFactor(factor);
     142    this->particleSystem_->setSpeedFactor(Orxonox::getSingleton()->getTimeFactor() * factor);
    141143  }
    142144  float ParticleInterface::getSpeedFactor() const
Note: See TracChangeset for help on using the changeset viewer.