Switches may be mechanical, magnetic or a combination of various force managing tools.
The following rail images illustrate what the drive boggies look like in the rail and when traveling through a switch.