What is difference between LookVector and Unit

I just can’t find a decent answer to this question, the only thing I could find is a superficial explanation that LookVector returns a normalized number, and Unit is not a normalized number, what’s the difference then?

Please explain as clearly as possible to make it clear.

Unit is a property of a Vector3 and Vector2, which returns the unit vector.

LookVector is a unit vector indicating the way a CFrame is facing.

3 Likes

So that’s the whole difference?

CFrames are (roughly) made of 4 vectors: the position, and then the X, Y, and Z vectors. Those X, Y and Z vectors are how CFrames store a rotation - they do not store pitch/yaw/roll.

CFrame.LookVector is the -Z (negative Z) vector, that is, the forward direction of the CFrame, as a Vector3. (Remember, in Roblox, the positive Z direction is backwards.)

Vector3.Unit is a Vector3 that points in the same direction as the original, but has a length of exactly 1.

2 Likes