Use the code if you want to, it's very versatile. It's nothing more than a contact physics test, but you can use and modify the code for your projects. I made it because I'm going to use it in my next project. It can be used for local multiplayer, pushing boxes, or simply game physics where there are walls (you'll have to remove the pushing part because you probably don't want the walls to move, or maybe you do, who knows)
I did it as a test for another project, but I thought it could be useful for others.