{"action":"created","issue":{"url":"https://api.github.com/repos/Dgame/Dgame/issues/53","labels_url":"https://api.github.com/repos/Dgame/Dgame/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/Dgame/Dgame/issues/53/comments","events_url":"https://api.github.com/repos/Dgame/Dgame/issues/53/events","html_url":"https://github.com/Dgame/Dgame/issues/53","id":94753679,"number":53,"title":"rotate shape in vector direction","user":{"login":"no-glue","id":4705461,"avatar_url":"https://avatars.githubusercontent.com/u/4705461?v=3","gravatar_id":"","url":"https://api.github.com/users/no-glue","html_url":"https://github.com/no-glue","followers_url":"https://api.github.com/users/no-glue/followers","following_url":"https://api.github.com/users/no-glue/following{/other_user}","gists_url":"https://api.github.com/users/no-glue/gists{/gist_id}","starred_url":"https://api.github.com/users/no-glue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/no-glue/subscriptions","organizations_url":"https://api.github.com/users/no-glue/orgs","repos_url":"https://api.github.com/users/no-glue/repos","events_url":"https://api.github.com/users/no-glue/events{/privacy}","received_events_url":"https://api.github.com/users/no-glue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-13T15:53:32Z","updated_at":"2015-07-13T19:31:37Z","closed_at":null,"body":"how is it possible to rotate shape in vector direction? currently i have angle between position and velocity. i need object to be aligned with velocity vector."},"comment":{"url":"https://api.github.com/repos/Dgame/Dgame/issues/comments/121032157","html_url":"https://github.com/Dgame/Dgame/issues/53#issuecomment-121032157","issue_url":"https://api.github.com/repos/Dgame/Dgame/issues/53","id":121032157,"user":{"login":"Dgame","id":2406877,"avatar_url":"https://avatars.githubusercontent.com/u/2406877?v=3","gravatar_id":"","url":"https://api.github.com/users/Dgame","html_url":"https://github.com/Dgame","followers_url":"https://api.github.com/users/Dgame/followers","following_url":"https://api.github.com/users/Dgame/following{/other_user}","gists_url":"https://api.github.com/users/Dgame/gists{/gist_id}","starred_url":"https://api.github.com/users/Dgame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dgame/subscriptions","organizations_url":"https://api.github.com/users/Dgame/orgs","repos_url":"https://api.github.com/users/Dgame/repos","events_url":"https://api.github.com/users/Dgame/events{/privacy}","received_events_url":"https://api.github.com/users/Dgame/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T19:31:37Z","updated_at":"2015-07-13T19:31:37Z","body":"Try `getClipRect`or `getVertexRect`, that wil give you the surrounding rect. On this you can call `getCenter` to ascertain the center point of your object."}}