Kurapikax Posted October 2, 2017 Share Posted October 2, 2017 Hello Phasers, I'm new to Phaser and I'm starting to have fun with it. But I have an issue with collision using Arcade physics. The problem is that when a collision happens between two bodies, the collision make them overlap a little bit and at some point the bodies pass through each other as you can see in this example. Adding the property bounce = 0 to the line body solve part of the problem. But their is style a slight overlap. Can somebody explain me what's happening and give me a solution to the problem ? Thanks. Link to comment Share on other sites More sharing options...
Kurapikax Posted October 7, 2017 Author Share Posted October 7, 2017 Nobody ? Link to comment Share on other sites More sharing options...
samid737 Posted October 7, 2017 Share Posted October 7, 2017 You could add a callBack whenever collision occurs and try to correct things: The reason why its happening, not sure, I think its just collision calculations piling up and eventually it destabilizes the physics system. Link to comment Share on other sites More sharing options...
samid737 Posted October 7, 2017 Share Posted October 7, 2017 you can try using p2 : Link to comment Share on other sites More sharing options...
samme Posted October 7, 2017 Share Posted October 7, 2017 Here is one way: Link to comment Share on other sites More sharing options...
Recommended Posts