return function(s,m,h)local f=game.Workspace.Gravity local S=math.atan((h^2+math.sqrt(h^4-f*(f*s^2+(2*m)*h^2)))/(f*s))if S~=S then S=math.pi/4 end return S end



return function(distance, altitude, velocity)
	local gravity = game.Workspace.Gravity
	
	--
	local theta = math.atan((velocity ^ 2 + math.sqrt(velocity ^ 4 -gravity * (gravity * distance ^ 2 + 2 * altitude * velocity ^ 2))) / (gravity * distance))
	
	--
	if theta ~= theta then
		theta = math.pi/4
	end
	
	--
	return(theta)
end
