Physics body goes crazy when changing scenes

Hey guys.

When I go into my game, the rope joints I’ve set up work fine. Then I go play a level and go back to the menu, the rope joints go crazy, swinging everywhere and twisting up. It’s like the level before it is messing with them somehow. I’ve paused physics but I don’t think that’s helping it any.

I’m using the storyboard API. When the game is going back to the menu, the physics are paused and then I start them up again when the menu is created.

Corona project here if you would like to see what it’s doing and the code:

http://www.filedropper.com/cubegameexample_1 [import]uid: 114174 topic_id: 26301 reply_id: 326301[/import]

Fixed the joints from going crazy but it seems like the physics bodies from a game level are still there when it transitions to the menu and they push menu bodies over, vice versa. Are the bodies still there from the level? Would I need to remove them manually? [import]uid: 114174 topic_id: 26301 reply_id: 106710[/import]

I’ve been working on figuring this out but I just have no idea what’s wrong with it. If anyone could help, that would be great. I’ve tried everything I could think of.

Most recent after I fixed part of it, not all of it:

http://www.filedropper.com/cubegameexample [import]uid: 114174 topic_id: 26301 reply_id: 107189[/import]