phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
http://phaser.io
MIT License
1.34k stars 491 forks source link

Arcade Circle body collision causes strange effects #579

Open Screeze opened 6 years ago

Screeze commented 6 years ago

This Issue is about

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

nazimboudeffa commented 6 years ago

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

samme commented 5 years ago

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