Browse Source

fix moving to the right

Kolja Strohm 3 năm trước cách đây
mục cha
commit
d33417ba91
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 )