codermua Posted June 22, 2016 Share Posted June 22, 2016 ok. I have same problem in there: http://gamedev.stackexchange.com/questions/123954/p2-collision-not-working-after-state-change/124306#124306 I am digging all documentation and examples for solving that problem. But i have nothing really. I can post my own codes if anyone want. And that example: http://phaser.io/examples/v2/p2-physics/state-reset Its including same problem. If you run it carefully, you can see first place objects colliding world bounds, but after changing state its not colliding. Link to comment Share on other sites More sharing options...
DevJ Posted June 22, 2016 Share Posted June 22, 2016 I've also had this problem in the past, which I couldn't solve: everything works fine at first, but when the game state is reset, nothing works but gravity and everything just goes off the screen. At the time I thought we were doing something wrong code-wise and after a few days with our heads around the code, we eventually gave up from using p2 physics on our project. I wonder if this has a quick fix on our side... codermua 1 Link to comment Share on other sites More sharing options...
isekream Posted June 22, 2016 Share Posted June 22, 2016 Have you tried creating collision groups? Link to comment Share on other sites More sharing options...
codermua Posted June 22, 2016 Author Share Posted June 22, 2016 no. I think that. But my objects have to doesnt collide depends on my wish. Objects can pass through each other if it is necessary. Is that possible with collision groups Link to comment Share on other sites More sharing options...
Recommended Posts