Rune Kode Posted March 1, 2017 Share Posted March 1, 2017 Hi, I am getting some unwanted behaviour with groups and p2 physics. When the sprites is leaving the screen, I want to kill them and reset new ones. But when I kill the first one, and reset a new one, the physics goes haywire. Anyone got a suggestion on how to fix this? Check this pen for an example: Link to comment Share on other sites More sharing options...
Rune Kode Posted March 3, 2017 Author Share Posted March 3, 2017 It seems that if I remove clearShapes and loadPolygons function, it all works as expected. Does it somehow collied with world bounds when resetting the sprite? Link to comment Share on other sites More sharing options...
Recommended Posts