Vector3::unit

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

This function returns a normalized copy of a Vector3- one that has the same direction but with a magnitude of 1.

Syntax

vector.unit();

Returns

  • Vector3 The normalized vector.

See Also