1nspect0r Posted August 31, 2020 Share Posted August 31, 2020 (edited) Hello So, got an issue driving me nuts. Trying to enable collision between balls, I wanted to make a body group but issue popped out, balls want to slide on the others, it's kinda random, sometimes it bounces as expected, sometimes not. It seems related to the shape because without the circle hitbox collisions are okay. But it was working without the group so... var balls = this.physics.add.group(); balls.create(100, 250, 'blueBall').setDrag(0.975).setDamping(true).setBounce(1).setCollideWorldBounds(true).setCircle(200).setScale(.2).setInteractive(); balls.create(200, 350, 'redBall').setDrag(0.975).setDamping(true).setBounce(1).setCollideWorldBounds(true).setCircle(200).setScale(.2).setInteractive(); balls.create(100, 350, 'redBall').setDrag(0.975).setDamping(true).setBounce(1).setCollideWorldBounds(true).setCircle(200).setScale(.2).setInteractive(); this.physics.add.collider(balls); I had no issue at first without making the group, collision where perfect between two balls using this snippet : ball = this.physics.add.image(100, 250, 'blueBall'); ball.setDrag(0.975).setDamping(true).setBounce(1).setCollideWorldBounds(true).setCircle(200).setScale(.2).setInteractive(); ball2 = this.physics.add.image(160, 250, 'redBall'); ball2.setDrag(0.975).setDamping(true).setBounce(1).setCollideWorldBounds(true).setCircle(200).setScale(.2).setInteractive(); this.physics.add.collider(ball, ball2); If you have any ideas at this point... Edited August 31, 2020 by 1nspect0r Link to comment Share on other sites More sharing options...
Milton Posted September 1, 2020 Share Posted September 1, 2020 The forum is now here. Use matter. See this example. Link to comment Share on other sites More sharing options...
1nspect0r Posted September 13, 2020 Author Share Posted September 13, 2020 On 9/1/2020 at 8:18 AM, Milton said: The forum is now here. Use matter. See this example. Ok thanks, i'll repost my issue there so. I'd like to know why this is happening before switching to matter. Link to comment Share on other sites More sharing options...
Recommended Posts