mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 09:53:51 +00:00
partial coordinates fix (slightly better results when changing cells, but still not completely correct)
This commit is contained in:
parent
bdd5e2f064
commit
1f077a5d5f
1 changed files with 3 additions and 4 deletions
|
@ -37,7 +37,7 @@ namespace MWRender
|
||||||
if (updateCamera)
|
if (updateCamera)
|
||||||
camera->setPosition (Ogre::Vector3 (
|
camera->setPosition (Ogre::Vector3 (
|
||||||
mPlayer.ref.pos.pos[0],
|
mPlayer.ref.pos.pos[0],
|
||||||
mPlayer.ref.pos.pos[2],
|
-mPlayer.ref.pos.pos[2],
|
||||||
mPlayer.ref.pos.pos[1]));
|
mPlayer.ref.pos.pos[1]));
|
||||||
|
|
||||||
// TODO: Update sound listener
|
// TODO: Update sound listener
|
||||||
|
@ -54,7 +54,6 @@ namespace MWRender
|
||||||
// orientation. After the call, the new position is returned.
|
// orientation. After the call, the new position is returned.
|
||||||
void moveRel(float &relX, float &relY, float &relZ)
|
void moveRel(float &relX, float &relY, float &relZ)
|
||||||
{
|
{
|
||||||
// TODO: Update mPlayer state
|
|
||||||
using namespace Ogre;
|
using namespace Ogre;
|
||||||
|
|
||||||
// Move camera relative to its own direction
|
// Move camera relative to its own direction
|
||||||
|
|
Loading…
Reference in a new issue