Scripting API: Vector3.Normalize - Unity - Manual
Maybe your like
- Manual
- Scripting API
- unity.com
- Supported
- Legacy
- English
- C#
Scripting API
Version: Unity 6.3 LTS Select a different version LanguageEnglish- English
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseSubmission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close Your name Your email Suggestion* Submit suggestionCancel
Declaration
public void Normalize();Description
Normalizes the magnitude of the current vector to 1 while maintaining the direction.
This method converts the current vector to a unit vector in the same direction. Only the magnitude of the vector changes. If the current vector is too small to be normalized, then this function returns the zero vector. A vector is too small to be normalized if it is considered equal to the zero vector. Note that this function changes the current vector. If you want to keep the current vector unchanged, use normalized variable or the static version of this function.Additional resources: normalized.
Declaration
public static Vector3 Normalize(Vector3 value);Parameters
| Parameter | Description |
|---|---|
| value | The vector to be normalized. |
Returns
Vector3 A new vector with the same direction as the original vector but with a magnitude of 1.0.
Description
Obtains the normalized version of an input vector.
Returns a normalized vector based on the given vector. The normalized vector has a magnitude of 1 and is in the same direction as the given vector. If the given vector is too small to be normalized, then this function returns the zero vector. A vector is too small to be normalized if it is considered equal to the zero vector. Note that this function doesn't modify the given vector. To modify and normalize the current vector, use the instance version of this method, with no parameter. Additional resources: normalized.
Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker at issuetracker.unity3d.com.
Copyright ©2005-2025 Unity Technologies. All rights reserved. Built from: 6000.3.4f1 (a6664b131965). Built on: 2025-12-22. Tutorials Community Answers Knowledge Base Forums Asset Store Terms of use Legal Privacy Policy Cookies Do Not Sell or Share My Personal Information Your Privacy Choices (Cookie Settings)Tag » How To Normalize A Vector
-
Vector Magnitude & Normalization (article) - Khan Academy
-
How To Normalize A Vector - YouTube
-
Vectors - Normalizing
-
What Is The Need For Normalizing A Vector? - Stack Overflow
-
5 Ways To Normalize A Vector - WikiHow
-
Normalized Vector -- From Wolfram MathWorld
-
Normalization | Introduction To Linear Algebra
-
Vector.Normalize Method (System.Windows) | Microsoft Learn
-
How To Normalize A NumPy Array To A Unit Vector
-
Normalize Data - MATLAB Normalize - MathWorks
-
Normalize Vector Calculator
-
What Happens When You Normalize A Vector? - Quora
-
Is There A Matlab Function To Normalize A Vector - MathWorks