Think of something like the old "follow the line" robot kits they have, except magnetic instead of optical and on a much larger scale.  I believe the system the ride is based off of is actually grid based, allowing for more navigation options, but it's the same principle - a buried magnetic line / coil.  Of course given the ride environment, there are many other sensors and triggers for safety and show.
Kinda like this, but much larger: