Roller coaster wheels are designed to prevent the cars from flipping off the track. They secure the train to the track while it travels through fancy loops and twists. When you go upside down on a roller coaster, inertia keeps you from falling out. This resistance to a change in motion is stronger than gravity.