Преглед изворни кода

fixed camera yaw being wrong

CapsAdmin пре 11 година
родитељ
комит
2af13cc51c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      QGearsMain/src/core/CameraManager.cpp

+ 1 - 1
QGearsMain/src/core/CameraManager.cpp

@@ -89,7 +89,7 @@ CameraManager::Input( const Event& event, Ogre::Real timeSinceLastFrame )
         }
         else if( event.type == ET_MOUSE_MOVE && m_CameraFreeRotate == true )
         {
-            m_Camera->rotate( Ogre::Vector3::UNIT_Y, Ogre::Radian( Ogre::Degree( -event.param1 * 0.13 ) ) );
+            m_Camera->rotate( Ogre::Vector3::UNIT_Z, Ogre::Radian( Ogre::Degree( -event.param1 * 0.13 ) ) );
             m_Camera->pitch( Ogre::Degree( -event.param2 * 0.13 ) );
         }
     }