1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

fix some time bug

This commit is contained in:
gugus 2011-03-09 18:29:57 +01:00
parent bf10471668
commit 40193253b0
2 changed files with 3 additions and 3 deletions

View File

@ -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);

@ -1 +1 @@
Subproject commit 3f0b610f2c5331fbc01617f993b77ead7e5261e8
Subproject commit 7185eab18c29a0a5e03e44690d6bd8ece7e3792b