Is there a way to give the player velocity in the direction they are looking at?

I know you can give velocity up or down using explode effect of an enchant, but is there a way to do it in the direction you are looking?
Continue to help post