{"action":"created","issue":{"url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/82","labels_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/82/comments","events_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/82/events","html_url":"https://github.com/daid/EmptyEpsilon/issues/82","id":125547205,"number":82,"title":"BUG? SpaceObject:getRotation() assumes heading set on init is 0.00?","user":{"login":"Wrongtown","id":16337876,"avatar_url":"https://avatars.githubusercontent.com/u/16337876?v=3","gravatar_id":"","url":"https://api.github.com/users/Wrongtown","html_url":"https://github.com/Wrongtown","followers_url":"https://api.github.com/users/Wrongtown/followers","following_url":"https://api.github.com/users/Wrongtown/following{/other_user}","gists_url":"https://api.github.com/users/Wrongtown/gists{/gist_id}","starred_url":"https://api.github.com/users/Wrongtown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wrongtown/subscriptions","organizations_url":"https://api.github.com/users/Wrongtown/orgs","repos_url":"https://api.github.com/users/Wrongtown/repos","events_url":"https://api.github.com/users/Wrongtown/events{/privacy}","received_events_url":"https://api.github.com/users/Wrongtown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-08T05:42:40Z","updated_at":"2016-01-08T09:43:52Z","closed_at":null,"body":"Apologies if I'm just not understanding how SpaceObject:getRotation() works, I'm still learning a lot about .lua.\r\n\r\nIn working on a script where the player ship begins with a heading of 90.00. I wanted to be able to check in as to the current heading for their ship so I created a table to store it as follows:\r\n\r\n    a = {}\r\n    H = \"stored_heading\"\r\n    a[H] = Player:getRotation()\r\n    print(a[H]) --Print the value recorded for debugging purposes\r\n\r\nThis mostly seems to be working, but it's offset by 90 degrees, for example:\r\n\r\nActual Heading | Returned Heading\r\n------------------- | -------------------\r\n90.00 | 0.00\r\n80.00 | -10.00\r\n109.00 | 19.00\r\n\r\nI get the same results if I don't bother building a table but just use `print(Player:getRotation())` so I'm assuming my table is not the culprit here.\r\n\r\n**Note:** I actually saw a bug in a recent play-through where the helm was using an Android phone running [2015.12.21-android.apk](http://software.ultimaker.com/EmptyEpsilon/EmptyEpsilon-2015.12.21-android.apk) and they would get negative numbers when turning counter-clockwise, but when I attempted to replicate it after that session I wasn't seeing it."},"comment":{"url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/comments/169948605","html_url":"https://github.com/daid/EmptyEpsilon/issues/82#issuecomment-169948605","issue_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/82","id":169948605,"user":{"login":"daid","id":964186,"avatar_url":"https://avatars.githubusercontent.com/u/964186?v=3","gravatar_id":"","url":"https://api.github.com/users/daid","html_url":"https://github.com/daid","followers_url":"https://api.github.com/users/daid/followers","following_url":"https://api.github.com/users/daid/following{/other_user}","gists_url":"https://api.github.com/users/daid/gists{/gist_id}","starred_url":"https://api.github.com/users/daid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daid/subscriptions","organizations_url":"https://api.github.com/users/daid/orgs","repos_url":"https://api.github.com/users/daid/repos","events_url":"https://api.github.com/users/daid/events{/privacy}","received_events_url":"https://api.github.com/users/daid/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T09:43:52Z","updated_at":"2016-01-08T09:43:52Z","body":"This is a difference between heading and rotation. The rotation/vector/position functions I use assume 0 degrees is to the right. While with the heading 0 degree is to the top."}}