Commits

Jeremy Sandell  committed 6a5138e Draft

fix order of initialization

  • Participants
  • Parent commits 065c2f1

Comments (0)

Files changed (1)

File CameraControlSystem/include/CCSOrbitalCameraMode.h

 
 namespace CCS
 {
-	/**
-	 * This is basically an attached camera mode where the user
-	 * can mofify the camera position. If the scene focus is seen
-	 * as the center of a sphere, the camera rotates arount it
-	 */
+    /**
+     * This is basically an attached camera mode where the user
+     * can mofify the camera position. If the scene focus is seen
+     * as the center of a sphere, the camera rotates arount it
+     */
     class DllExport OrbitalCameraMode : public ChaseFreeYawAxisCameraMode
-	{
-	public:
+    {
+    public:
 
 		OrbitalCameraMode(CameraControlSystem* cam, Ogre::Real initialZoom = 1
 			, Ogre::Radian initialHorizontalRotation = Ogre::Radian(0), Ogre::Radian initialVerticalRotation = Ogre::Radian(0)
 			, bool resetToInitialPosition = true, Ogre::Real collisionmargin = 0.1f) 
-			: ChaseFreeYawAxisCameraMode(cam, Ogre::Vector3::ZERO, Ogre::Quaternion::IDENTITY, collisionmargin)
-			, mZoomFactor(1)
-            , mRotationFactor(0.13)
-			, mInitialRotHorizontal(initialHorizontalRotation)
-			, mInitialRotVertical(initialVerticalRotation)
-			, mInitialZoom(initialZoom)			
-			, mZoom(initialZoom)
-			, mRotHorizontal(0)
-			, mRotVertical(0)
-			, mZoomDisplacement(0)
-			, mResetToInitialPosition(resetToInitialPosition)
+			: ChaseFreeYawAxisCameraMode(cam, Ogre::Vector3::ZERO, Ogre::Quaternion::IDENTITY, collisionmargin),
+			  mZoomFactor(1),
+              mRotationFactor(0.13),
+              mRotHorizontal(0),
+              mRotVertical(0),
+              mZoom(initialZoom),
+              mInitialRotHorizontal(initialHorizontalRotation),
+              mInitialRotVertical(initialVerticalRotation),
+              mInitialZoom(initialZoom),
+              mZoomDisplacement(0),
+              mResetToInitialPosition(resetToInitialPosition)
         {
-			this->setCameraTightness(1);
+            this->setCameraTightness(1);
 		};
 
         virtual ~OrbitalCameraMode(){};