phaser-ce icon indicating copy to clipboard operation
phaser-ce copied to clipboard

Arcade Circle body collision causes strange effects

Open Screeze opened this issue 6 years ago • 2 comments

This Issue is about

  • A bug in the API:
    • Phaser version(s): Phaser CE v2.11.0
    • Live example: https://codepen.io/anon/pen/jppVdd
    • What should happen: Circle bodies should collide well with each other and with squares
    • What happens instead: Collisions between circle bodies cause strange movements of the balls. Additionally colliding a circle with the edge of a square also has sometimes strange effects

Please see the example codepen and observe the balls and their behaviour. They start shaking sometimes when colliding and changing to weird directions.

I think this is a framework bug, but in case I made a mistake please tell me :)

Would be very nice if someone could fix this! Thanks!

edit: You can sometimes even observe this in the official example: https://phaser.io/examples/v2/arcade-physics/circle-body But its better visible in my codepen

Screeze avatar Aug 05 '18 13:08 Screeze

It's like if the balls bounce twice od three times between them then go in the oposit direction, and another comportement is when they just turn a little bit around then go ahead

It looks like if the bounce value is under the velocity value so it bounce more then only one time

nazimboudeffa avatar Sep 08 '18 23:09 nazimboudeffa

https://github.com/photonstorm/phaser/issues/4256

samme avatar Jan 22 '19 20:01 samme