What is Vector3.Unit

So, recently i’ve been working with the camera a lot, which led me to using CFrame.FromMatrix, which led me to a conclusion; it is really hard to work with , I really don’t understand the amounts I have to set each vector to cause if i mess up the screen warps in really weird manners, and I heard that Vector3.
Unit did something that had to do with the numbers necessary for maintaining the screen ratio with CFrame.FromMatrix, but how exactly does it work?

You can view this article already talking about this or this article explaining vectors(if youre interested).

1 Like

So it converts a directional vector to a lookvector with an exact magnitude of 1?

1 Like

if i am correct a unit vector always has a magnitude of 1.the dev hub says Vector3.Unit is a normalized copy of the vector - one which has the same direction as the original but a magnitude of 1. what there basically saying is that a unit vector has the same direction but always the magnitude of ONE. Here’s an example

local Vector = vector3.New(5, 8, 3)
print(Vector.Magnitude) --  the length from *0,0,0* to *5, 8, 3*
print(Vector.Unit) -- 1

note i haven’t used unit vectors in a long time so tell me if i am wrong