local function V(V,K)return math.atan2(K.X*V.Z-K.Z*V.X,K.X*V.X+K.Z*V.Z)end

local function findAngleBetweenXZVectors(vec2, vec1)
	-- This is a way of finding the angle between the two vectors:
	return math.atan2(vec1.X*vec2.Z-vec1.Z*vec2.X, vec1.X*vec2.X + vec1.Z*vec2.Z)
end
