From 40193253b0a1121d6e6ef045817936ef59cef5fe Mon Sep 17 00:00:00 2001 From: gugus Date: Wed, 9 Mar 2011 18:29:57 +0100 Subject: [PATCH] fix some time bug --- apps/openmw/mwrender/mwscene.cpp | 4 ++-- libs/openengine | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwrender/mwscene.cpp b/apps/openmw/mwrender/mwscene.cpp index dd44be882..c4e5cd477 100644 --- a/apps/openmw/mwrender/mwscene.cpp +++ b/apps/openmw/mwrender/mwscene.cpp @@ -136,10 +136,10 @@ void MWScene::doPhysics (float duration, MWWorld::World& world, //mat.ToEulerAnglesXYZ(x,y,z); //mat.FromEulerAnglesXYZ(Ogre::Radian(0),z,Ogre::Radian(0)); Ogre::Vector3 dir1(iter->second.x,iter->second.z,-iter->second.y); - Ogre::Vector3 dir = quat*dir1; + Ogre::Vector3 dir = 0.01*(quat*dir1); //the add the movement: - act->setWalkDirection(btVector3(dir.x,-dir.z,dir.y)*duration); + act->setWalkDirection(btVector3(dir.x,-dir.z,dir.y)); } //std::cout << "duration " << duration << std::endl; eng->stepSimulation(duration); diff --git a/libs/openengine b/libs/openengine index 3f0b610f2..7185eab18 160000 --- a/libs/openengine +++ b/libs/openengine @@ -1 +1 @@ -Subproject commit 3f0b610f2c5331fbc01617f993b77ead7e5261e8 +Subproject commit 7185eab18c29a0a5e03e44690d6bd8ece7e3792b