I want to know how Roblox turns any two Vector3 values into a LookVector with values ranging from -1 to 1 via CFrame.lookAt(). To make it clearer:
...
local Direction = CFrame.lookAt(Part1.Position, Part2.Position)
print(Direction.LookVector) --[[ How does it compute the Vector3s' data and convert it
into a Vector3, specifically with values ranging from -1 to 1?]]
I was assuming that it first gets the direction through subtracting them first, but after some testing, I couldn’t figure out how it was simplified to values ranging from -1 to 1. Also no, this isn’t to fix a problem who’s solution needs this, rather I want to know how Roblox’s function works directly.
You are right again, it is technically just a dividing scenario because that’s how the magnitude is turned to one according to formula for a unit vector.