{"action":"opened","issue":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/4154","repository_url":"https://api.github.com/repos/libgdx/libgdx","labels_url":"https://api.github.com/repos/libgdx/libgdx/issues/4154/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/libgdx/issues/4154/comments","events_url":"https://api.github.com/repos/libgdx/libgdx/issues/4154/events","html_url":"https://github.com/libgdx/libgdx/issues/4154","id":160942807,"number":4154,"title":"RotateToAction behavior missing wrap around logic","user":{"login":"wiverson","id":873850,"avatar_url":"https://avatars.githubusercontent.com/u/873850?v=3","gravatar_id":"","url":"https://api.github.com/users/wiverson","html_url":"https://github.com/wiverson","followers_url":"https://api.github.com/users/wiverson/followers","following_url":"https://api.github.com/users/wiverson/following{/other_user}","gists_url":"https://api.github.com/users/wiverson/gists{/gist_id}","starred_url":"https://api.github.com/users/wiverson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiverson/subscriptions","organizations_url":"https://api.github.com/users/wiverson/orgs","repos_url":"https://api.github.com/users/wiverson/repos","events_url":"https://api.github.com/users/wiverson/events{/privacy}","received_events_url":"https://api.github.com/users/wiverson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-17T17:59:34Z","updated_at":"2016-06-17T17:59:34Z","closed_at":null,"body":"#### Issue details\r\n\r\nRotateToAction does not properly deal with rotation cases around the 360 degree barrier - it always goes \"the long way around\".\r\n\r\ncom.badlogic.gdx.scenes.scene2d.actions.RotateToAction.update (float percent) {\r\n\t\ttarget.setRotation(start + (end - start) * percent);\r\n\t}\r\n\r\nshould probably be implemented as something like...\r\n\r\n        target.setRotation(MathUtils.lerpAngleDeg(start, .end, percent));\r\n\r\n#### Version of LibGDX and/or relevant dependencies\r\n\r\n        gdxVersion = '1.9.3'\r\n\r\n#### Affected platforms  - All\r\n\r\nMy first reported issue, so be kind.  :)  Seems awfully tiny for a pull request, but if that or anything else would be helpful just let me know.\r\n"}}
{"actor":{"display_login":"wiverson"}}