1. Jeremy Sandell
  2. ogre-ccs

Commits

Jeremy Sandell  committed 7db9c57 Draft

fix order of initialization

  • Participants
  • Parent commits 6a5138e
  • Branches default

Comments (0)

Files changed (1)

File CameraControlSystem/include/CCSFreeCameraMode.h

View file
 			, Ogre::Degree initialRotationX = Ogre::Degree(0)
 			, Ogre::Degree initialRotationY = Ogre::Degree(0)
 			, SWITCHING_MODE switchingMode = CURRENT_STATE
-			, Ogre::Real margin = 0.1f) 
-            : CameraControlSystem::CameraMode(cam)
-            , CameraControlSystem::CollidableCamera(cam, margin)
-			, mFixedAxis(Ogre::Vector3::UNIT_Y)
-            , mMoveFactor(1)
-            , mRotationFactor(0.13)
-			, mRotX(initialRotationX)
-			, mRotY(initialRotationY)
-			, mInitialPosition(initialPosition)
-			, mInitialRotationX(initialRotationX)
-			, mInitialRotationY(initialRotationY)
-			, mLastRotationX(initialRotationX)
-			, mLastRotationY(initialRotationY)
-			, mLastPosition(initialPosition)
-			, mSwitchingMode(switchingMode)
-
+            , Ogre::Real margin = 0.1f) 
+            : CameraControlSystem::CameraMode(cam),
+              CameraControlSystem::CollidableCamera(cam, margin),
+              mFixedAxis(Ogre::Vector3::UNIT_Y),
+              mMoveFactor(1),
+              mRotationFactor(0.13),
+              mRotX(initialRotationX),
+              mRotY(initialRotationY),
+              mInitialRotationX(initialRotationX),
+              mInitialRotationY(initialRotationY),
+              mInitialPosition(initialPosition),
+              mLastRotationX(initialRotationX),
+              mLastRotationY(initialRotationY),
+              mLastPosition(initialPosition),
+              mSwitchingMode(switchingMode)
         {
 			mCameraPosition = initialPosition;