I'm having trouble understanding it and the Roblox Wiki doesn't help at all.
COMMUNITY QUESTION
What is Vector3.Unit and examples of it? Does it have anything related to magnitude?
1 answer
Yes. The function Vector3.unit is a function just like vector3 but a unit of 1. Basically, vector3.unit is usually for magnitude. When using Vector3.Unit it takes a vector3's direction and make the length/distance to 1. Vector3.unit is pretty much vector3 but has a unit.
3 comments
0
still don't understand, example?
0
still don't understand, example?
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
This function will provide a direction normal of the Vector it was called on, with a unit of 1. This means we can modify the magnitude to stretch to any distance we want.
That's literally the same thing the roblox dev hub said
Think of it like this: You went to a restaurant and bought a 3-course meal, the total cost was 18$. The Unit** price defines how much one** meal will cost... 18/3 = 6$.
Let's say we want to now buy up to 7 meals, we can just say 6*7. The same principle applies to a Unit Vector, we can define how much magnitude we wan't from the direction it was normally** facing in.
sorry, still don't understand