function f = lane_change_termination(world_state, id, lane_id, P)
% lane change terminates when we're close the the lane center

state = world_state.car_states(id);
f = ( abs(state.ey - P.roads(state.road_id).lanes(state.lane_id).ey) < P.s_tol);
