소스 검색

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 ) );
         }
     }