Shoot in a angle

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Serenade
:warning: Old Version Published before Godot 3 was released.

How can i make Player to throw rocks in a direction its facing(so that rocks flies up and then down), but with controlled distance, for example, longer i press the “select button” further it will trow and the angle goes higher too?