{"action":"closed","issue":{"url":"https://api.github.com/repos/iiegor/slither/issues/20","repository_url":"https://api.github.com/repos/iiegor/slither","labels_url":"https://api.github.com/repos/iiegor/slither/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/iiegor/slither/issues/20/comments","events_url":"https://api.github.com/repos/iiegor/slither/issues/20/events","html_url":"https://github.com/iiegor/slither/issues/20","id":149667379,"number":20,"title":"Increase vector Snake direction code","user":{"login":"GrumpyOet","id":18069610,"avatar_url":"https://avatars.githubusercontent.com/u/18069610?v=3","gravatar_id":"","url":"https://api.github.com/users/GrumpyOet","html_url":"https://github.com/GrumpyOet","followers_url":"https://api.github.com/users/GrumpyOet/followers","following_url":"https://api.github.com/users/GrumpyOet/following{/other_user}","gists_url":"https://api.github.com/users/GrumpyOet/gists{/gist_id}","starred_url":"https://api.github.com/users/GrumpyOet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrumpyOet/subscriptions","organizations_url":"https://api.github.com/users/GrumpyOet/orgs","repos_url":"https://api.github.com/users/GrumpyOet/repos","events_url":"https://api.github.com/users/GrumpyOet/events{/privacy}","received_events_url":"https://api.github.com/users/GrumpyOet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-20T05:55:13Z","updated_at":"2016-04-20T16:30:23Z","closed_at":"2016-04-20T16:30:23Z","body":"var incX = ((float)Math.Cos((Math.PI / 180) * this.Snake.CurrentAngle));\r\nvar incY = ((float)Math.Sin((Math.PI / 180) * this.Snake.CurrentAngle));\r\n\r\nThat for calculate the good increase vector for snake direction\r\n(You need to convert you angle to radian like this)\r\n\r\nFrom nightwolf93"}}