From 773b7635a40b77663ec789b0d8092e172a4839d8 Mon Sep 17 00:00:00 2001 From: gugus Date: Tue, 22 Mar 2011 21:30:46 +0100 Subject: [PATCH] decrease the range of the raycast, and modifie the gravity/speed of the player. --- apps/openmw/mwrender/mwscene.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwrender/mwscene.cpp b/apps/openmw/mwrender/mwscene.cpp index e0aa8c45b..93197f690 100644 --- a/apps/openmw/mwrender/mwscene.cpp +++ b/apps/openmw/mwrender/mwscene.cpp @@ -72,7 +72,7 @@ std::pair MWScene::getFacedHandle (MWWorld::World& world) //let's avoid the capsule shape of the player. centerRay.setOrigin(centerRay.getOrigin() + 20*centerRay.getDirection()); btVector3 from(centerRay.getOrigin().x,-centerRay.getOrigin().z,centerRay.getOrigin().y); - btVector3 to(centerRay.getPoint(1000).x,-centerRay.getPoint(1000).z,centerRay.getPoint(1000).y); + btVector3 to(centerRay.getPoint(500).x,-centerRay.getPoint(500).z,centerRay.getPoint(500).y); return eng->rayTest(from,to); } @@ -115,7 +115,7 @@ void MWScene::doPhysics (float duration, MWWorld::World& world, { Ogre::Quaternion quat = yawNode->getOrientation(); Ogre::Vector3 dir1(iter->second.x,iter->second.z,-iter->second.y); - dir = 0.07*(quat*dir1); + dir = 0.025*(quat*dir1); } //set the walk direction @@ -208,7 +208,7 @@ void MWScene::toggleCollisionMode() { mFreeFly = false; act->enableCollisions(true); - act->setGravity(10.); + act->setGravity(4.); act->setVerticalVelocity(0); } }