|
|
|
@ -327,7 +327,6 @@ void RenderingManager::update (float duration, bool paused)
|
|
|
|
|
Ogre::Vector3 playerPos(_playerPos[0], _playerPos[1], _playerPos[2]);
|
|
|
|
|
|
|
|
|
|
Ogre::Vector3 orig, dest;
|
|
|
|
|
mCamera->setCameraDistance();
|
|
|
|
|
if(!mCamera->getPosition(orig, dest))
|
|
|
|
|
{
|
|
|
|
|
orig.z += mCamera->getHeight() * mRootNode->getScale().z;
|
|
|
|
@ -902,6 +901,14 @@ bool RenderingManager::vanityRotateCamera(const float *rot)
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void RenderingManager::setCameraDistance(float dist, bool adjust, bool override)
|
|
|
|
|
{
|
|
|
|
|
if(!mCamera->isVanityOrPreviewModeEnabled() && !mCamera->isFirstPerson())
|
|
|
|
|
{
|
|
|
|
|
mCamera->setCameraDistance(-dist / 120.f * 10, adjust, override);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void RenderingManager::getInteriorMapPosition (Ogre::Vector2 position, float& nX, float& nY, int &x, int& y)
|
|
|
|
|
{
|
|
|
|
|
return mLocalMap->getInteriorMapPosition (position, nX, nY, x, y);
|
|
|
|
|