{"action":"created","issue":{"url":"https://api.github.com/repos/OpenMods/OpenBlocks/issues/686","labels_url":"https://api.github.com/repos/OpenMods/OpenBlocks/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/OpenMods/OpenBlocks/issues/686/comments","events_url":"https://api.github.com/repos/OpenMods/OpenBlocks/issues/686/events","html_url":"https://github.com/OpenMods/OpenBlocks/issues/686","id":100318895,"number":686,"title":"Item cannon ignores Y pos","user":{"login":"jilleJr","id":2477952,"avatar_url":"https://avatars.githubusercontent.com/u/2477952?v=3","gravatar_id":"","url":"https://api.github.com/users/jilleJr","html_url":"https://github.com/jilleJr","followers_url":"https://api.github.com/users/jilleJr/followers","following_url":"https://api.github.com/users/jilleJr/following{/other_user}","gists_url":"https://api.github.com/users/jilleJr/gists{/gist_id}","starred_url":"https://api.github.com/users/jilleJr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jilleJr/subscriptions","organizations_url":"https://api.github.com/users/jilleJr/orgs","repos_url":"https://api.github.com/users/jilleJr/repos","events_url":"https://api.github.com/users/jilleJr/events{/privacy}","received_events_url":"https://api.github.com/users/jilleJr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenMods/OpenBlocks/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/OpenMods/OpenBlocks/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"nevercast","id":834342,"avatar_url":"https://avatars.githubusercontent.com/u/834342?v=3","gravatar_id":"","url":"https://api.github.com/users/nevercast","html_url":"https://github.com/nevercast","followers_url":"https://api.github.com/users/nevercast/followers","following_url":"https://api.github.com/users/nevercast/following{/other_user}","gists_url":"https://api.github.com/users/nevercast/gists{/gist_id}","starred_url":"https://api.github.com/users/nevercast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nevercast/subscriptions","organizations_url":"https://api.github.com/users/nevercast/orgs","repos_url":"https://api.github.com/users/nevercast/repos","events_url":"https://api.github.com/users/nevercast/events{/privacy}","received_events_url":"https://api.github.com/users/nevercast/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-08-11T14:03:58Z","updated_at":"2015-08-16T17:38:38Z","closed_at":null,"body":"The item cannons calculation for the cursor is somewhat wrong, it can focus on the pointed block but only in the x and z axis it seems.\r\n\r\nIf I point at a block at `x20 y80 z50` and `x20 y120 z50` there's barely any differance.\r\n\r\nI looked at the [source (link)](https://github.com/OpenMods/OpenBlocks/blob/master/src/main/java/openblocks/common/tileentity/TileEntityCannon.java#L159) but I am not that good with math so I don't understand the majority of it :laughing:\r\nI guess the `HOURS_WASTED_ON_CANNON_LOGIC` variable can be incremented :stuck_out_tongue:\r\n\r\nNo but jokes aside if someone with more experience in trigonometry _(or whatever the subject is called)_ could aid with making the algorithm also consider the Y height difference.\r\n\r\nI did find [this algorithm (link)](http://bukkit.org/threads/setvelocity-vector-and-parabolic-motion.86661/#post-1615773) made by SethBling _(ported by [Hellsing](http://bukkit.org/members/hellsing.90604514/) on the bukkit forums)_ and it was made for calculating the velocity of throwing potions at a target. I bet it could be ported to suit the item cannon, and I tried but I don't know what I did wrong because it's so hard to get right _(I barley know what I'm doing...)_.\r\n\r\nIt would be awesome if someone could do this 'cause it's very annoying to try to get the arc to hit the target as it is right now.\r\n\r\nTy for readin :smiley:"},"comment":{"url":"https://api.github.com/repos/OpenMods/OpenBlocks/issues/comments/131589289","html_url":"https://github.com/OpenMods/OpenBlocks/issues/686#issuecomment-131589289","issue_url":"https://api.github.com/repos/OpenMods/OpenBlocks/issues/686","id":131589289,"user":{"login":"nevercast","id":834342,"avatar_url":"https://avatars.githubusercontent.com/u/834342?v=3","gravatar_id":"","url":"https://api.github.com/users/nevercast","html_url":"https://github.com/nevercast","followers_url":"https://api.github.com/users/nevercast/followers","following_url":"https://api.github.com/users/nevercast/following{/other_user}","gists_url":"https://api.github.com/users/nevercast/gists{/gist_id}","starred_url":"https://api.github.com/users/nevercast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nevercast/subscriptions","organizations_url":"https://api.github.com/users/nevercast/orgs","repos_url":"https://api.github.com/users/nevercast/repos","events_url":"https://api.github.com/users/nevercast/events{/privacy}","received_events_url":"https://api.github.com/users/nevercast/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T17:38:38Z","updated_at":"2015-08-16T17:38:38Z","body":"This will be completed today.\r\n"}}