[Orxonox-commit 1440] r6158 - code/branches/presentation2/src/orxonox/graphics
rgrieder at orxonox.net
rgrieder at orxonox.net
Thu Nov 26 10:04:59 CET 2009
Author: rgrieder
Date: 2009-11-26 10:04:59 +0100 (Thu, 26 Nov 2009)
New Revision: 6158
Modified:
code/branches/presentation2/src/orxonox/graphics/Camera.cc
code/branches/presentation2/src/orxonox/graphics/Camera.h
Log:
Fixed mouse look in slow motion.
Modified: code/branches/presentation2/src/orxonox/graphics/Camera.cc
===================================================================
--- code/branches/presentation2/src/orxonox/graphics/Camera.cc 2009-11-26 08:58:16 UTC (rev 6157)
+++ code/branches/presentation2/src/orxonox/graphics/Camera.cc 2009-11-26 09:04:59 UTC (rev 6158)
@@ -110,6 +110,7 @@
if (this->bDrag_)
{
+ dt = dt / this->getTimeFactor();
// this stuff here may need some adjustments
float coeff = std::min(1.0f, 15.0f * dt);
Modified: code/branches/presentation2/src/orxonox/graphics/Camera.h
===================================================================
--- code/branches/presentation2/src/orxonox/graphics/Camera.h 2009-11-26 08:58:16 UTC (rev 6157)
+++ code/branches/presentation2/src/orxonox/graphics/Camera.h 2009-11-26 09:04:59 UTC (rev 6158)
@@ -33,11 +33,12 @@
#include "util/OgreForwardRefs.h"
#include "tools/interfaces/Tickable.h"
+#include "tools/interfaces/TimeFactorListener.h"
#include "worldentities/StaticEntity.h"
namespace orxonox
{
- class _OrxonoxExport Camera : public StaticEntity, public Tickable
+ class _OrxonoxExport Camera : public StaticEntity, public Tickable, public TimeFactorListener
{
friend class CameraManager;
More information about the Orxonox-commit
mailing list