diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-05-31 12:10:35 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-05-31 12:10:35 +0200 |
commit | 05e7f467bd6c062a4b658d3a60bbadee804c7efc (patch) | |
tree | 37c2c2a7f94a51f52a2340eb24f3c6491741ffd6 /core | |
parent | a0b0ae5396df26c1a65081b093709696a0c0166e (diff) | |
download | gdx-boardgame-05e7f467bd6c062a4b658d3a60bbadee804c7efc.zip gdx-boardgame-05e7f467bd6c062a4b658d3a60bbadee804c7efc.tar.gz |
Camera : fix translate
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/Camera.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Camera.java b/core/src/ch/asynk/gdx/boardgame/Camera.java index d72f15c..322c6d5 100644 --- a/core/src/ch/asynk/gdx/boardgame/Camera.java +++ b/core/src/ch/asynk/gdx/boardgame/Camera.java @@ -153,7 +153,7 @@ public class Camera extends OrthographicCamera { float deltaX = (dx * zoom * widthFactor); float deltaY = (dy * zoom * heightFactor); - translate(deltaX, -deltaY, 0); + translate(-deltaX, deltaY, 0); clampPosition(); update(true); } |