Fixed player rotation not being sent on Android

This commit is contained in:
Anuken
2018-02-08 09:24:25 -05:00
parent 714a4895bf
commit 36afd9f140
3 changed files with 5 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ public class GestureHandler extends GestureAdapter{
float dx = deltaX*Core.camera.zoom/Core.cameraScale, dy = deltaY*Core.camera.zoom/Core.cameraScale;
player.x -= dx;
player.y += dy;
player.targetAngle = Mathf.atan2(dx, -dy);
player.targetAngle = Mathf.atan2(dx, -dy) + 180f;
}else if(control.input().placeMode.lockCamera && (control.input().placeMode.pan && control.input().recipe != null)){
input.mousex += deltaX;
input.mousey += deltaY;