attempting to incorporate speed into curve generation