#.Unit

1 messages · Page 1 of 1 (latest)

crude nebula
#

I dont understand what .Unit does when people use it when scripting vector force or body velocity etc

marble crest
#

a unit vector is a vector that is "normalized" or, all the components of the vector (X, Y, and Z) are divided by the magnitude of the vector

#

the reason you'd want to do this is to represent a vector as a direction rather than a position on a coordinate plane

#

if you think of the center of the coordinate plane and the point (1, 0, 1) it's pointing forward and to the right

#

you'd use that for all kinds of stuff

#

you should look into a game dev math tutorial on vectors, it should help you understand the use cases

pseudo temple