Browse Source

fix moving to the right

Kolja Strohm 3 years ago
parent
commit
d33417ba91
1 changed files with 1 additions and 1 deletions
  1. 1 1
      FactoryCraft/Player.cpp

+ 1 - 1
FactoryCraft/Player.cpp

@@ -109,7 +109,7 @@ void Player::tick( const Dimension* zDimension, Game* zGame )
     if( (keyState | Key::MOVE_RIGHT) == keyState )
     {
         Vec2<float> norm = { faceDir.x, faceDir.y };
-        norm.CCW90().normalize();
+        norm.CW90().normalize();
         speed += {norm.x, norm.y, 0};
     }
     if( (keyState | Key::MOVE_LEFT) == keyState )