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.
Location:
code/trunk/src/orxonox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/CMakeLists.txt

    r1553 r1555  
    7878  tinyxml
    7979  tolualib
    80   ois
     80  ois_orxonox
    8181  util
    8282  core
  • 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.