using miles's vps_test code in move_towards_target_smooth