Explorar o código

fix moving to the right

Kolja Strohm %!s(int64=3) %!d(string=hai) anos
pai
achega
d33417ba91
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 )