Parcourir la source

fixed camera yaw being wrong

CapsAdmin il y a 11 ans
Parent
commit
2af13cc51c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 ) );
         }
     }