friction_distance_functions