{"action":"created","issue":{"url":"https://api.github.com/repos/hexus/phaser-arcade-slopes/issues/7","repository_url":"https://api.github.com/repos/hexus/phaser-arcade-slopes","labels_url":"https://api.github.com/repos/hexus/phaser-arcade-slopes/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/hexus/phaser-arcade-slopes/issues/7/comments","events_url":"https://api.github.com/repos/hexus/phaser-arcade-slopes/issues/7/events","html_url":"https://github.com/hexus/phaser-arcade-slopes/issues/7","id":162456494,"number":7,"title":"Overlap doesn't appear to account for empty space and overlaps them with ground ","user":{"login":"michaeljcalkins","id":8272012,"avatar_url":"https://avatars.githubusercontent.com/u/8272012?v=3","gravatar_id":"","url":"https://api.github.com/users/michaeljcalkins","html_url":"https://github.com/michaeljcalkins","followers_url":"https://api.github.com/users/michaeljcalkins/followers","following_url":"https://api.github.com/users/michaeljcalkins/following{/other_user}","gists_url":"https://api.github.com/users/michaeljcalkins/gists{/gist_id}","starred_url":"https://api.github.com/users/michaeljcalkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaeljcalkins/subscriptions","organizations_url":"https://api.github.com/users/michaeljcalkins/orgs","repos_url":"https://api.github.com/users/michaeljcalkins/repos","events_url":"https://api.github.com/users/michaeljcalkins/events{/privacy}","received_events_url":"https://api.github.com/users/michaeljcalkins/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hexus/phaser-arcade-slopes/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"hexus","id":2626789,"avatar_url":"https://avatars.githubusercontent.com/u/2626789?v=3","gravatar_id":"","url":"https://api.github.com/users/hexus","html_url":"https://github.com/hexus","followers_url":"https://api.github.com/users/hexus/followers","following_url":"https://api.github.com/users/hexus/following{/other_user}","gists_url":"https://api.github.com/users/hexus/gists{/gist_id}","starred_url":"https://api.github.com/users/hexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hexus/subscriptions","organizations_url":"https://api.github.com/users/hexus/orgs","repos_url":"https://api.github.com/users/hexus/repos","events_url":"https://api.github.com/users/hexus/events{/privacy}","received_events_url":"https://api.github.com/users/hexus/received_events","type":"User","site_admin":false},"assignees":[{"login":"hexus","id":2626789,"avatar_url":"https://avatars.githubusercontent.com/u/2626789?v=3","gravatar_id":"","url":"https://api.github.com/users/hexus","html_url":"https://github.com/hexus","followers_url":"https://api.github.com/users/hexus/followers","following_url":"https://api.github.com/users/hexus/following{/other_user}","gists_url":"https://api.github.com/users/hexus/gists{/gist_id}","starred_url":"https://api.github.com/users/hexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hexus/subscriptions","organizations_url":"https://api.github.com/users/hexus/orgs","repos_url":"https://api.github.com/users/hexus/repos","events_url":"https://api.github.com/users/hexus/events{/privacy}","received_events_url":"https://api.github.com/users/hexus/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-06-27T13:50:11Z","updated_at":"2016-06-30T22:16:31Z","closed_at":null,"body":"*UPDATE*\r\n\r\nSee down the conversation, the collide behavior looks like it's correct but you can't use overlap yet.\r\nhttps://github.com/hexus/phaser-arcade-slopes/issues/7#issuecomment-229096109\r\n\r\n*OLD*\r\nThe bullets hit the 50% slope and slide up.\r\n![bullets5](https://cloud.githubusercontent.com/assets/8272012/16381760/deb2c480-3c32-11e6-88a1-3bf8133b77ca.gif)\r\n\r\nThe bullets go straight through and if you're shooting through a 10x10 the bullet will enter one side and collide with the opposite side.\r\n![bullets5](https://cloud.githubusercontent.com/assets/8272012/16381803/0b8835a8-3c33-11e6-8751-a4272c6ba9ea.gif)\r\n\r\nThis is how I create 50 reusable bullets.\r\n```javascript\r\n    this.bullets = this.game.add.group()\r\n    this.bullets.createMultiple(50, 'bullet')\r\n    this.bullets.setAll('checkWorldBounds', true)\r\n    this.bullets.setAll('outOfBoundsKill', true)\r\n    this.physics.arcade.enable(this.bullets)\r\n    this.game.slopes.enable(this.bullets)\r\n```\r\n\r\nThis is how I fire a bullet.\r\n```javascript\r\n    let bullet = this.rootScope.bullets.getFirstDead()\r\n    bullet.bulletId = Guid()\r\n    bullet.damage = this.damage\r\n    bullet.weaponId = this.meta.id\r\n    bullet.height = this.bulletHeight\r\n    bullet.width = this.bulletWidth\r\n    bullet.alpha = 0\r\n    bullet.body.gravity.y = -1800\r\n\r\n    // Add a touch of tile padding for the collision detection\r\n    bullet.body.tilePadding.x = 50\r\n    bullet.body.tilePadding.y = 1\r\n    \r\n    bullet.reset(x, y)\r\n    let pointerAngle = this.rootScope.game.physics.arcade.moveToPointer(bullet, this.bulletSpeed)\r\n    bullet.rotation = pointerAngle\r\n\r\n    setTimeout(() => {\r\n        bullet.alpha = this.bulletAlpha !== undefined ? this.bulletAlpha : 1\r\n    }, 40)\r\n```\r\n\r\nThis is how I collide bullets with the slope ground.\r\n```javascript\r\n    this.physics.arcade.collide(this.bullets, this.ground,  function(bullet) {\r\n        bullet.kill()\r\n    }, null, this)\r\n```\r\n\r\nNormally I use overlap though.\r\n```javascript\r\n    this.physics.arcade.overlap(this.bullets, this.ground,  function(bullet) {\r\n        bullet.kill()\r\n    }, null, this)\r\n```\r\n\r\nbut this has been happening.\r\n\r\n![bullets5](https://cloud.githubusercontent.com/assets/8272012/16382030/fb4d6914-3c33-11e6-8c29-87128eeb1461.gif)\r\n"},"comment":{"url":"https://api.github.com/repos/hexus/phaser-arcade-slopes/issues/comments/229804527","html_url":"https://github.com/hexus/phaser-arcade-slopes/issues/7#issuecomment-229804527","issue_url":"https://api.github.com/repos/hexus/phaser-arcade-slopes/issues/7","id":229804527,"user":{"login":"michaeljcalkins","id":8272012,"avatar_url":"https://avatars.githubusercontent.com/u/8272012?v=3","gravatar_id":"","url":"https://api.github.com/users/michaeljcalkins","html_url":"https://github.com/michaeljcalkins","followers_url":"https://api.github.com/users/michaeljcalkins/followers","following_url":"https://api.github.com/users/michaeljcalkins/following{/other_user}","gists_url":"https://api.github.com/users/michaeljcalkins/gists{/gist_id}","starred_url":"https://api.github.com/users/michaeljcalkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaeljcalkins/subscriptions","organizations_url":"https://api.github.com/users/michaeljcalkins/orgs","repos_url":"https://api.github.com/users/michaeljcalkins/repos","events_url":"https://api.github.com/users/michaeljcalkins/events{/privacy}","received_events_url":"https://api.github.com/users/michaeljcalkins/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T22:16:31Z","updated_at":"2016-06-30T22:16:31Z","body":"It totally worked!  I didn't get a chance to really test it a lot but immediately I was able to shoot again! :)"}}
{"actor":{"display_login":"michaeljcalkins"}}