Vec3:normalize

Edit

Adjusts the values in the vector so that its direction stays the same but its length becomes 1.

v = Vec3:normalize()

Arguments

None

Returns

NameTypeDescription
vVec3 The original vector.

See also