1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-04 03:15:32 +00:00

reverse Z-axis rotation to make doors happy

This commit is contained in:
greye 2012-08-16 16:24:59 +04:00
parent 40c7a850bf
commit e8fc942bef
2 changed files with 3 additions and 3 deletions

View file

@ -24,5 +24,5 @@ void MouseLookEvent::event(Type type, int index, const void *p)
float y = arg->state.Y.rel * sensY;
MWBase::World *world = MWBase::Environment::get().getWorld();
world->rotateObject(world->getPlayer().getPlayer(), -y, 0.f, -x, true);
world->rotateObject(world->getPlayer().getPlayer(), -y, 0.f, x, true);
}

View file

@ -82,7 +82,7 @@ namespace MWRender
Ogre::Radian(getPitch() + Ogre::Math::HALF_PI),
Ogre::Vector3::UNIT_X
);
Ogre::Quaternion zr(Ogre::Radian(getYaw()), Ogre::Vector3::UNIT_Z);
Ogre::Quaternion zr(Ogre::Radian(getYaw()), Ogre::Vector3::NEGATIVE_UNIT_Z);
pitchNode->setOrientation(xr);
yawNode->setOrientation(zr);
@ -130,7 +130,7 @@ namespace MWRender
}
if (mVanity.enabled) {
Ogre::Vector3 rot(0.f, 0.f, 0.f);
rot.z = Ogre::Degree(-3.f * duration).valueRadians();
rot.z = Ogre::Degree(3.f * duration).valueRadians();
rotateCamera(rot, true);
}
}