Calculation of angle for slingshot trajectory