mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +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
@ -37,12 +37,12 @@ namespace MWRender
|
||||
if (updateCamera)
|
||||
camera->setPosition (Ogre::Vector3 (
|
||||
mPlayer.ref.pos.pos[0],
|
||||
mPlayer.ref.pos.pos[2],
|
||||
-mPlayer.ref.pos.pos[2],
|
||||
mPlayer.ref.pos.pos[1]));
|
||||
|
||||
// TODO: Update sound listener
|
||||
}
|
||||
|
||||
|
||||
void setCell (MWWorld::Ptr::CellStore *cellStore)
|
||||
{
|
||||
mCellStore = cellStore;
|
||||
@ -54,7 +54,6 @@ namespace MWRender
|
||||
// orientation. After the call, the new position is returned.
|
||||
void moveRel(float &relX, float &relY, float &relZ)
|
||||
{
|
||||
// TODO: Update mPlayer state
|
||||
using namespace Ogre;
|
||||
|
||||
// Move camera relative to its own direction
|
||||
@ -75,7 +74,7 @@ namespace MWRender
|
||||
// Set the position
|
||||
setPos(relX, relY, relZ);
|
||||
}
|
||||
|
||||
|
||||
MWWorld::Ptr getPlayer()
|
||||
{
|
||||
MWWorld::Ptr ptr (&mPlayer, mCellStore);
|
||||
|
Loading…
x
Reference in New Issue
Block a user