This project explains the physics for "Neon Ride." Look inside for a basic understanding of how it works. Feel free to comment if you don't understand something, or want something that I had not explained to be explained.
Here's the actual Neon Ride http://scratch.mit.edu/projects/30133706/