Use the left and right arrow keys to control the mine cart, press the space bar to switch the layout of the track.
The physics that I've created could be applied to any vehicle that has two wheels when in 2D. The actual mine cart is just art for the wheels, and does none of the physics. All code created by me, I found the mine cart on google images and just changed it to what I needed. Feel free to use what I've created, but give credit to the author