{"action":"created","issue":{"url":"https://api.github.com/repos/DemoProductions/shmup/issues/119","repository_url":"https://api.github.com/repos/DemoProductions/shmup","labels_url":"https://api.github.com/repos/DemoProductions/shmup/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/DemoProductions/shmup/issues/119/comments","events_url":"https://api.github.com/repos/DemoProductions/shmup/issues/119/events","html_url":"https://github.com/DemoProductions/shmup/issues/119","id":169507779,"number":119,"title":"Rotate weapon prefabs","user":{"login":"flip40","id":10754057,"avatar_url":"https://avatars.githubusercontent.com/u/10754057?v=3","gravatar_id":"","url":"https://api.github.com/users/flip40","html_url":"https://github.com/flip40","followers_url":"https://api.github.com/users/flip40/followers","following_url":"https://api.github.com/users/flip40/following{/other_user}","gists_url":"https://api.github.com/users/flip40/gists{/gist_id}","starred_url":"https://api.github.com/users/flip40/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flip40/subscriptions","organizations_url":"https://api.github.com/users/flip40/orgs","repos_url":"https://api.github.com/users/flip40/repos","events_url":"https://api.github.com/users/flip40/events{/privacy}","received_events_url":"https://api.github.com/users/flip40/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DemoProductions/shmup/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/DemoProductions/shmup/labels/high%20priority","name":"high priority","color":"e99695"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-05T01:05:49Z","updated_at":"2016-08-05T18:35:19Z","closed_at":null,"body":"Weapon prefab shoots up by default. Weapon should always face \"forwards\" relative to its parent (rotating the parent should keep the weapon firing where the parent is facing). Cases of weapons that shoot up, down, etc. should be handled by the various weapons classes we might add (i.e. subclasses) which will also face forward, but not fire the bullet forward."},"comment":{"url":"https://api.github.com/repos/DemoProductions/shmup/issues/comments/237928752","html_url":"https://github.com/DemoProductions/shmup/issues/119#issuecomment-237928752","issue_url":"https://api.github.com/repos/DemoProductions/shmup/issues/119","id":237928752,"user":{"login":"flip40","id":10754057,"avatar_url":"https://avatars.githubusercontent.com/u/10754057?v=3","gravatar_id":"","url":"https://api.github.com/users/flip40","html_url":"https://github.com/flip40","followers_url":"https://api.github.com/users/flip40/followers","following_url":"https://api.github.com/users/flip40/following{/other_user}","gists_url":"https://api.github.com/users/flip40/gists{/gist_id}","starred_url":"https://api.github.com/users/flip40/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flip40/subscriptions","organizations_url":"https://api.github.com/users/flip40/orgs","repos_url":"https://api.github.com/users/flip40/repos","events_url":"https://api.github.com/users/flip40/events{/privacy}","received_events_url":"https://api.github.com/users/flip40/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T18:35:19Z","updated_at":"2016-08-05T18:35:19Z","body":"Rotating the sprite wont fix the issue... the issue is not with the player, it is with the weapon being rotated incorrectly. Rotation and positions are overridden when prefabs are instantiated (remember instantiation requires passing a v3 position and a quaternion rotation), so making rotation/position changes to prefabs will also not fix the issue.\r\n\r\nCode fix is required because of this. One of these conditions is currently broken and we need both of them to be true:\r\n* weapon is the exact same rotation as its parent object (weapon forward should match parent forward)\r\n* for this weapon, the bullet should be spawned at weapon forward and rotated to face weapon forward"}}
{"actor":{"display_login":"flip40"}}