Vector3.Unit normalises any vector, but what you’re looking for is this:
-- canonical method for obtaining the angle between two normals
local function angle(v1, v2)
return math.acos(math.clamp(v1.Unit:Dot(v2.Unit), -1, 1))
end
Vector3.Unit normalises any vector, but what you’re looking for is this:
-- canonical method for obtaining the angle between two normals
local function angle(v1, v2)
return math.acos(math.clamp(v1.Unit:Dot(v2.Unit), -1, 1))
end