Available since Version 1.0.
Returns a vector with the same direction as the input vector but with a magnitude of 1.
Syntax
Engine.Vector3.Normalize( vector )Arguments
- vector (Vector3): The vector to normalize.
Return Values
- (Vector3): A vector with the same direction as the input vector but with a magnitude of 1.
Examples
local vector = Engine.Vector3(1, 2, 3)
local result = Engine.Vector3.Normalize(vector)