1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 09:23:53 +00:00

Fix wrong rotation of objects dropped on the ground

This commit is contained in:
scrawl 2013-03-09 13:27:24 +01:00
parent c8b31b4745
commit 5c94c654d4

View file

@ -1188,6 +1188,9 @@ namespace MWWorld
pos.pos[0] = result.second[0];
pos.pos[1] = result.second[1];
pos.pos[2] = result.second[2];
// We want only the Z part of the player's rotation
pos.rot[0] = 0;
pos.rot[1] = 0;
Ptr dropped = copyObjectToCell(object, *cell, pos);
PCDropped(dropped);
@ -1242,6 +1245,9 @@ namespace MWWorld
ESM::Position pos =
actor.getRefData().getPosition();
// We want only the Z part of the actor's rotation
pos.rot[0] = 0;
pos.rot[1] = 0;
Ogre::Vector3 orig =
Ogre::Vector3(pos.pos[0], pos.pos[1], pos.pos[2]);