Index: code/branches/gameimmersion/src/orxonox/worldentities/pawns/SpaceShip.cc
===================================================================
--- code/branches/gameimmersion/src/orxonox/worldentities/pawns/SpaceShip.cc	(revision 8533)
+++ code/branches/gameimmersion/src/orxonox/worldentities/pawns/SpaceShip.cc	(revision 8541)
@@ -168,7 +168,4 @@
             }
 
-	   // COUT(0) << "Velocity: " << this->getVelocity().length() << " - " << this->getVelocity().squaredLength() << std::endl;
-
-
             if(this->bBoost_)
             {
@@ -186,7 +183,77 @@
         }
     }
+
+    void SpaceShip::moveFrontBack(const Vector2& value)
+    {
+        this->localLinearAcceleration_.setZ(this->localLinearAcceleration_.z() - value.x);
+        this->steering_.z = -value.x;
+    }
+
+    void SpaceShip::moveRightLeft(const Vector2& value)
+    {
+        this->localLinearAcceleration_.setX(this->localLinearAcceleration_.x() + value.x);
+        this->steering_.x = value.x;
+    }
+
+    void SpaceShip::moveUpDown(const Vector2& value)
+    {
+        this->localLinearAcceleration_.setY(this->localLinearAcceleration_.y() + value.x);
+        this->steering_.y = value.x;
+    }
+
+    void SpaceShip::rotateYaw(const Vector2& value)
+    {
+        this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x);
+
+        Pawn::rotateYaw(value);
+    }
+
+    void SpaceShip::rotatePitch(const Vector2& value)
+    {
+        this->localAngularAcceleration_.setX(this->localAngularAcceleration_.x() + value.x);
+
+        Pawn::rotatePitch(value);
+    }
+
+    void SpaceShip::rotateRoll(const Vector2& value)
+    {
+        this->localAngularAcceleration_.setZ(this->localAngularAcceleration_.z() + value.x);
+
+        Pawn::rotateRoll(value);
+    }
+
+    void SpaceShip::fire()
+    {
+    }
+
+    /**
+    @brief
+        Starts or stops boosting.
+    @param bBoost
+        Whether to start or stop boosting.
+    */
+    void SpaceShip::boost(bool bBoost)
+    {	
+        if(bBoost && !this->bBoostCooldown_)
+	{
+	    //COUT(0) << "Boost startet!\n";
+            this->bBoost_ = true;
+	}
+        if(!bBoost)
+	{
+	    //COUT(0) << "Boost stoppt\n";
+	    this->resetCamera();
+            this->bBoost_ = false;
+	}
+    }
+    
+    void SpaceShip::boostCooledDown(void)
+    {
+	    this->bBoostCooldown_ = false;
+    }
     
     void SpaceShip::shakeCamera(float dt)
     {
+	    //make sure the ship is only shaking if it's moving
 	    if (this->getVelocity().squaredLength() > 80)
 	    {
@@ -208,77 +275,25 @@
 		    if (c != 0)
 		    {
-			c->setOrientation(Vector3::UNIT_X, angle);
+			    c->setOrientation(Vector3::UNIT_X, angle);
 		    }
 	    }
     }
-
-
-    void SpaceShip::boostCooledDown(void)
-    {
-        this->bBoostCooldown_ = false;
-    }
-
-    void SpaceShip::moveFrontBack(const Vector2& value)
-    {
-        this->localLinearAcceleration_.setZ(this->localLinearAcceleration_.z() - value.x);
-        this->steering_.z = -value.x;
-    }
-
-    void SpaceShip::moveRightLeft(const Vector2& value)
-    {
-        this->localLinearAcceleration_.setX(this->localLinearAcceleration_.x() + value.x);
-        this->steering_.x = value.x;
-    }
-
-    void SpaceShip::moveUpDown(const Vector2& value)
-    {
-        this->localLinearAcceleration_.setY(this->localLinearAcceleration_.y() + value.x);
-        this->steering_.y = value.x;
-    }
-
-    void SpaceShip::rotateYaw(const Vector2& value)
-    {
-        this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x);
-
-        Pawn::rotateYaw(value);
-    }
-
-    void SpaceShip::rotatePitch(const Vector2& value)
-    {
-        this->localAngularAcceleration_.setX(this->localAngularAcceleration_.x() + value.x);
-
-        Pawn::rotatePitch(value);
-    }
-
-    void SpaceShip::rotateRoll(const Vector2& value)
-    {
-        this->localAngularAcceleration_.setZ(this->localAngularAcceleration_.z() + value.x);
-
-        Pawn::rotateRoll(value);
-    }
-
-    void SpaceShip::fire()
-    {
-    }
-
-    /**
-    @brief
-        Starts or stops boosting.
-    @param bBoost
-        Whether to start or stop boosting.
-    */
-    void SpaceShip::boost(bool bBoost)
-    {	
-        if(bBoost && !this->bBoostCooldown_)
-	{
-//	    COUT(0) << "Boost startet!\n";
-            this->bBoost_ = true;
-	}
-        if(!bBoost)
-	{
-//	    COUT(0) << "Boost stoppt\n";
-	    this->resetCamera();
-            this->bBoost_ = false;
-	}
+    
+    void SpaceShip::resetCamera()
+    {
+	    
+//	    COUT(0) << "Resetting camera\n";
+	    Camera *c = this->getCamera();
+	  
+	    if (c == 0)
+	    {
+		    COUT(2) << "Failed to reset camera!";
+		    return;
+	    }
+	    
+	    shakeDt_ = 0;
+	    // 	    
+	    c->setPosition(this->cameraOriginalPosition);
+	    c->setOrientation(this->cameraOriginalOrientation);
     }
 
@@ -326,20 +341,4 @@
     }
     
-    void SpaceShip::resetCamera()
-    {
-	    
-//	    COUT(0) << "Resetting camera\n";
-	    Camera *c = this->getCamera();
-	  
-	    if (c == 0)
-	    {
-		    COUT(2) << "Failed to reset camera!";
-	    	    return;
-	    }
-	    
-	    shakeDt_ = 0;
-// 	    
-	    c->setPosition(this->cameraOriginalPosition);
-	    c->setOrientation(this->cameraOriginalOrientation);
-    }
+
 }
