diff --git a/apps/openmw/mwrender/mwscene.cpp b/apps/openmw/mwrender/mwscene.cpp index 5edadda97..0cd2634c5 100644 --- a/apps/openmw/mwrender/mwscene.cpp +++ b/apps/openmw/mwrender/mwscene.cpp @@ -109,13 +109,13 @@ void MWScene::doPhysics (float duration, MWWorld::World& world, Ogre::Quaternion yawQuat = yawNode->getOrientation(); Ogre::Quaternion pitchQuat = pitchNode->getOrientation(); Ogre::Vector3 dir1(iter->second.x,iter->second.z,-iter->second.y); - dir = 0.01*(yawQuat*pitchQuat*dir1); + dir = 0.07*(yawQuat*pitchQuat*dir1); } else { Ogre::Quaternion quat = yawNode->getOrientation(); Ogre::Vector3 dir1(iter->second.x,iter->second.z,-iter->second.y); - dir = 0.01*(quat*dir1); + dir = 0.07*(quat*dir1); } //set the walk direction @@ -127,6 +127,7 @@ void MWScene::doPhysics (float duration, MWWorld::World& world, { OEngine::Physic::PhysicActor* act = it->second; btVector3 newPos = act->getPosition(); + std::cout << newPos.x()<first); world.moveObject (ptr, newPos.x(), newPos.y(), newPos.z()); } diff --git a/apps/openmw/mwworld/world.cpp b/apps/openmw/mwworld/world.cpp index 539fa8235..e08425336 100644 --- a/apps/openmw/mwworld/world.cpp +++ b/apps/openmw/mwworld/world.cpp @@ -309,7 +309,7 @@ namespace MWWorld bool adjustPlayerPos) { if (adjustPlayerPos) - mPlayer->setPos (position.pos[0], position.pos[1], position.pos[2], true); + mPlayer->setPos (position.pos[0], position.pos[1], position.pos[2], false); mPlayer->setCell (cell); // TODO orientation