what does .unit do for vectors?
COMMUNITY QUESTION
what does .unit do for vectors?
1 answer
Very simply, it changes the Vector3's magnitude to 1, without changing the angle.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
With 'magnitude' meaning the length or size, if you didn't know, block.
why would it be important to change magnitude to 1:o
For when you only care about the direction, mainly. It's a normalization, meaning you can multiply the resulting vector by a new length and it will just work, rather than having to find some ratio to multiply by to get from the existing length to the new one. Here's a short paper on why its useful in more 'pure' math: http://www.anselm.edu/internet/physics/cbphysics/downloadsi/unitvectors.pdf