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:
parent
bf10471668
commit
40193253b0
@ -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
|
Loading…
x
Reference in New Issue
Block a user