Fixed inverted Mouse-Y in World

This commit is contained in:
Michel Fedde 2020-12-13 14:23:52 +01:00
parent fd53c73fa7
commit 0ab7f29b06
2 changed files with 4 additions and 1 deletions

View file

@ -23,6 +23,7 @@ namespace SM2D.Controls
public Vector2 InWorld()
{
var res = _window.WorldScale;
res.Y *= -1;
return InScreenNormalized * res - res / 2;
}