Small physics update the top contact 3rd rail train E.g Class 700. Have the shoe react the the trains suspension and the presence or absence of the 3rd rail. When there is no rail have to shoe sit slightly below the plain of the rail and when It comes into contact have it move up to meet the rail as it does irl.