Rune Kode Posted March 1, 2017 Report 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: Quote Link to comment Share on other sites More sharing options...
Rune Kode Posted March 3, 2017 Author Report 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.