partial coordinates fix (slightly better results when changing cells, but still not completely correct)

actorid
Marc Zinnschlag 15 years ago
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…
Cancel
Save